-
Notifications
You must be signed in to change notification settings - Fork 16
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
Redis storage does is not working - no errors #1140
Comments
Hi @twigs67, I've just installed and configured the module and it successfully works with the following packages: "ioredis": "^5.3.1",
"nestjs-throttler-storage-redis": "^0.3.0",
"redis": "3",
"@types/ioredis": "^5.0.0", Here's my storage configuration: storage: new ThrottlerStorageRedisService(
new Redis({
host: configService.get<string>('REDIS_HOST'),
port: +configService.get<string>('REDIS_PORT'),
password: configService.get<string>('REDIS_PASSWORD'),
db: +configService.get<string>('REDIS_THROTTLER_DB'),
}),
), |
@twigs67 You can check if rate limiter is working by using Shell 1: Then in shell 4 you can run
If you see something to this output, you know the throttler works. |
Closing due to inactivity. |
Rate limiter does not seem to work when using Redis. However, no errors are being thrown to indicate that the connection is unsuccessful.
Packages:
Just seeing if anyone has any ideas?
The text was updated successfully, but these errors were encountered: