-
Notifications
You must be signed in to change notification settings - Fork 64
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
serious bug: remaining times is stuck when use "storage" option with nestjs-redis #416
Comments
Without using the RedisStorage, the module throws an exception after 30 requests, as you've set. I used this zsh script to test it throttlerTest() {
dummy=count
count=0
while true
do
curl -s --fail http://localhost:3000/app/hello
if [ $? -ne 0 ]
then
echo "We got rate limited"
curl -v http://localhost:3000/app/hello
break
fi
(($dummy += 1))
done
echo "Requests made before limiting:"
echo $count
} And got back
So like you said, it works normally, meaning there's a problem with how the sub-library works and returns the |
Fixed in kkoomen/nestjs-throttler-storage-redis v0.1.12. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a...
Current behavior
Expected behavior
The throttler should works normally.
Minimal reproduction of the problem with instructions
Environment
The text was updated successfully, but these errors were encountered: