starsz opened a new issue #6748: URL: https://github.com/apache/apisix/issues/6748
### Description Hello, the situation is as follows: I want to do the rate limit on Apache APISIX. First, I create a route with a count (3) like this: ``` curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "methods": ["GET"], "uri": "/*", "plugins": { "limit-count": { "count": 3, "time_window": 60, "rejected_code": 503, "key_type": "var", "key": "remote_addr" }, "key-auth": {} }, "upstream": { "type": "roundrobin", "nodes": { "httpbin.org": 1 } } }' ``` And create a consumer named peter with a count (5) ``` curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "username": "peter", "plugins": { "key-auth": { "key": "auth-two" }, "limit-count": { "count": 5, "time_window": 60, "rejected_code": 503, "key_type": "var", "key": "remote_addr" } } } ``` I use curl to do the request. ``` curl http://127.0.0.1:9080/get -H 'apikey: auth-two' ``` After 5 times, it returns 503. But what I expect is that after 3 times, I can get the 503. -- 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]
