-
Notifications
You must be signed in to change notification settings - Fork 57
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
Throttler not working as expected #2074
Comments
I think I found the issue here. Kinda surprised our test suite didn't catch it already, but we're using a Changing to |
So, interestingly, it seems this error might be related to how supertest works. I'm still looking into it for the moment, but when I brought the test suite into the |
Found the reason it wasn't failing in our test suite, there was a default |
Thanks for the quick fix. I tested it in my project and it looks good from my end. My main reason for upgrading to 6.x was the sliding window behavior which I think is a lot better than the previous behavior. 👍 |
Is there an existing issue for this?
Current behavior
When running the latest throttler (6.x), multiple requests are not blocked as expected.
Minimum reproduction code
https://github.com/mukunda-/nestjs-throttler-test
Steps to reproduce
Expected behavior
The throttler should not allow more requests until the existing blocks expire fully.
Package version
6.0.0
NestJS version
10.3.10
Node.js version
20.15.1
In which operating systems have you tested?
Other
The text was updated successfully, but these errors were encountered: