-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Setting rejected_msg in "limit-req" plugin does not save #2310
Comments
Hello there, Please provide you environment info in the description. |
|
How did you create the plugin? Using Admin API or Manager API? |
using manager api |
Can you post the full configuration of this route in etcd? That way I can verify it directly. |
the configuration is: |
What's the dashboard version? |
I think so |
@1657486787 The test environment was launched with Can you restart the |
@1657486787 There seems to be something to do with #2285 |
I just tested restarting |
@1657486787 I checked this issue, due to rejected_msg is not supported on the front-end form, it is not displayed, but there is already data in etcd. We should support this filed in front, @guoqqqi please take a look. |
Please assign it to me, I'll fix this. |
@oil-oil assigned you, have fun. |
The PR related to this issue has been merged. I think this issue can be closed. |
Issue description
Setting rejected_msg in "limit-req" plugin does not save
Environment
apisix version
):2.12uname -a
):Linux wx-2 3.10.0-1160.el7.x86_64Steps 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":"请求太多了,稍后重试..."
}
The text was updated successfully, but these errors were encountered: