DGolubets opened a new issue, #9964:
URL: https://github.com/apache/apisix/issues/9964

   ### Current Behavior
   
   Using Limit Count plugin, when `X-RateLimit-Remaining` reaches 0, 
`X-RateLimit-Reset` starts to return 0.
   
   ### Expected Behavior
   
   `X-RateLimit-Remaining` should show remaining time to reset.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Enable the plugin (I did it for a consumer):
   ```
   {
     "username": "test",
     "plugins": {
       "limit-count": {
         "count": 2,
         "key": "test-user",
         "key_type": "constant",
         "policy": "local",
         "rejected_code": 503,
         "time_window": 60
       }
     }
   }
   ```
   
   2. Run requests via `curl -v` 
   
   ### Environment
   
   APISIX install with Helm in k8s.
   Chart version: apisix-2.1.0
   App version: 3.4.0 


-- 
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-unsubscr...@apisix.apache.org.apache.org

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

Reply via email to