-
Notifications
You must be signed in to change notification settings - Fork 12
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 #16
Comments
@AndrewJo could you take a look? |
At file adonis-throttle/middleware/ThrottleRequests.js they try to add a header if (!this.throttle.attempt()) {
this.throttle.incrementExpiration()
this._addHeaders(
response,
maxAttempts,
this.throttle.remainingAttempts(),
this.throttle.store.secondsToExpiration(this.throttle.key)
)
throw new TooManyRequestsException('Too Many Attempts.')
} but at adonis-throttle/src/Drivers/Cache/Redis/index.js this function does not exists |
@masasron @kennedyrs submitted PR #17 that fixes this issue! |
Great, thank you @AndrewJo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to use it with Redis, I have this error
Node v12.14.1
Adonis 4.1
is this an error or am I missing something?
The text was updated successfully, but these errors were encountered: