Skip to content

bug: Setting rejected_msg in "limit-req" plugin does not save #2310

Closed
@1657486787

Description

@1657486787

Issue description

Setting rejected_msg in "limit-req" plugin does not save

Environment

  • apisix version (cmd: apisix version):2.12
  • OS (cmd: uname -a):Linux wx-2 3.10.0-1160.el7.x86_64

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":"请求太多了,稍后重试..."
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions