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
- 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
}
}
}
- Run requests via
curl -v
Environment
APISIX install with Helm in k8s.
Chart version: apisix-2.1.0
App version: 3.4.0
Current Behavior
Using Limit Count plugin, when
X-RateLimit-Remainingreaches 0,X-RateLimit-Resetstarts to return 0.Expected Behavior
X-RateLimit-Remainingshould show remaining time to reset.Error Logs
No response
Steps to Reproduce
curl -vEnvironment
APISIX install with Helm in k8s.
Chart version: apisix-2.1.0
App version: 3.4.0