You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/07 10:57:35 UTC

[GitHub] [apisix] tokers commented on issue #6221: bug: Setting rejected_msg in "limit-req" plugin does not save

tokers commented on issue #6221:
URL: https://github.com/apache/apisix/issues/6221#issuecomment-1031335670


   > > Can you post the full configuration of this route in etcd? That way I can verify it directly.
   > 
   > the configuration is: { "uri": "/dw2/*", "name": "route_limit_req", "methods": [ "GET" ], "plugins": { "ext-plugin-pre-req": { "conf": [ { "name": "TokenValidator", "value": "{"validate_header":"token","validate_url":"434","rejected_code":"406"}" } ], "disable": true }, "limit-req": { "burst": 1, "disable": false, "key": "1", "key_type": "var", "nodelay": false, "rate": 1, "rejected_code": 503, "rejected_msg": "请求太多了,稍后重试..." }, "request-id": { "disable": true, "header_name": "mk-id", "include_in_response": true }, "response-rewrite": { "body_base64": false, "disable": true, "headers": { "X-Server-balancer_addr": "$balancer_ip:$balancer_port", "X-Server-id": 3, "X-Server-status": "on", "body": "{"code":"ok","message":"new json body"}" }, "vars": [ [ "status", "==", 200 ] ] } }, "upstream_id": "392266237876372160", "status": 1 }
   > 
   > 1.Set rejected_msg in "limit-req" plugin , eg: ![image](https://user-images.githubusercontent.com/44360272/152744808-cc50c7ae-4ee1-43ea-bc7e-fe10d20222dc.png)
   > 
   > 2. After saving, go in and check again, and find that it is not saved, eg:
   >    ![image](https://user-images.githubusercontent.com/44360272/152745335-af36a46e-e42b-4ffe-8f4e-e947e9552e60.png)
   
   What's the dashboard version?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org