We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Why this rate is allowing more than one request per hour?
if is_ratelimited( request, 'invites', key=lambda group, request: self.kwargs['pk'], rate='1/h', increment=True ): return Response(status=status.HTTP_429_TOO_MANY_REQUESTS) else: SendInviteEmailService(invite).send_email() return Response(status=status.HTTP_200_OK)
[22/Mar/2018 01:03:15] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 200 0 [22/Mar/2018 01:03:16] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:03:17] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:13:23] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:13:24] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:33:28] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:33:29] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:43:32] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:43:33] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:43:33] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0 [22/Mar/2018 01:53:36] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 200 0
The text was updated successfully, but these errors were encountered:
There's a ticket to document this better but this is not surprising behavior. The windows are staggered throughout the hour based on the key so that
The best description is in the upgrading docs but #120 is about making this more obvious in the docs.
Sorry, something went wrong.
Please reopen if you're able to reproduce this behavior within an hour after the window reset, though!
No branches or pull requests
Why this rate is allowing more than one request per hour?
[22/Mar/2018 01:03:15] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 200 0
[22/Mar/2018 01:03:16] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:03:17] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:13:23] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:13:24] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:33:28] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:33:29] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:43:32] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:43:33] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:43:33] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 429 0
[22/Mar/2018 01:53:36] "POST /api/v1/personal_trainers/1/invites/2/resend_email/ HTTP/1.1" 200 0
The text was updated successfully, but these errors were encountered: