1657486787 opened a new issue #6221:
URL: https://github.com/apache/apisix/issues/6221


   ### Issue description
   
   Setting rejected_msg in "limit-req" plugin does not save
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   
   
   ### Steps to reproduce
   
   1.Set rejected_msg in "limit-req" plugin , eg:
   {
     "rate": 1,
     "burst": 1,
     "key_type": "var",
     "key": "1",
     "rejected_code": 503,
     "nodelay": false,
     "rejected_msg":"请求太多了,稍后重试..."
   }
   2. After saving, go in and check again, and find that it is not saved, eg:
   {
     "rate": 1,
     "burst": 1,
     "key_type": "var",
     "key": "1",
     "rejected_code": 503,
     "nodelay": false
   }
   
   
   ### Actual result
   
   {
     "rate": 1,
     "burst": 1,
     "key_type": "var",
     "key": "1",
     "rejected_code": 503,
     "nodelay": false
   }
   
   ### Error log
   
   nothing 
   
   ### Expected result
   
   {
     "rate": 1,
     "burst": 1,
     "key_type": "var",
     "key": "1",
     "rejected_code": 503,
     "nodelay": false,
     "rejected_msg":"请求太多了,稍后重试..."
   }


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to