-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Handle RATE_LIMIT_HIT
(Rate limit exceeded) errors
#773
Comments
@zulipbot add "enhancement" "help wanted" |
@zulipbot claim |
Welcome to Zulip, @Fahdmoh01! We just sent you an invite to collaborate on this repository at https://github.com/zulip/python-zulip-api/invitations. Please accept this invite in order to claim this issue and begin a fun, rewarding experience contributing to Zulip! Here's some tips to get you off to a good start:
As you work on this issue, you'll also want to refer to the Zulip code contribution guide, as well as the rest of the developer documentation on that site. See you on the other side (that is, the pull request side)! |
@i-ky does the Rate limit has to do with the message_limit? |
Sorry, I am not familiar with Zulip's internals. What is |
message_limit is a variable inside the Ratelimit class of the zulip python api. where do I go to ask for further clarification for this issue? |
I can only clarify what I propose to be changed from a python-zulip-api user's perspective, how it is to be changed from python-zulip-api perspective is a different matter. |
This need to be done as an option -- some clients might very much not want to have sleeps of this form be part of what might happen. I suppose there's also a question of whether we want the semantics to be to automatically retry the operation that failed due to the rate limit, or something else. We also need to be cautious in implementing documenting this sort of thing to make sure we don't end up with bugged clients hitting the server exactly as often as the rate limits allow - that can generate a lot more useless load than something that doesn't retry. Probably this is not too hard to manage. |
@Fahdmoh01 You have been unassigned from this issue because you have not made any updates for over 14 days. Please feel free to reclaim the issue if you decide to pick up again. Thanks! |
@timabbott Hi, is this issue still up for grabs and is it something that I can start working on... |
@timabbott claim |
@zulipbot claim |
Welcome to Zulip, @quinnah! We just sent you an invite to collaborate on this repository at https://github.com/zulip/python-zulip-api/invitations. Please accept this invite in order to claim this issue and begin a fun, rewarding experience contributing to Zulip! Here's some tips to get you off to a good start:
As you work on this issue, you'll also want to refer to the Zulip code contribution guide, as well as the rest of the developer documentation on that site. See you on the other side (that is, the pull request side)! |
how do i reproduce this? |
@codewithnick, try a different API endpoint (e.g. I originally suffered from it while uploading custom emojis). I would assume that Zulip is quite tolerant to bursts of messages sent, but may use stricter limits for other stuff. Or try harder using |
@codewithnick, you can also try lowering limits for your Zulip server. |
is there any way to do it? pl lmk |
I believe this is the relevant piece of documentation. |
It would be nice if this library handled
RATE_LIMIT_HIT
errors automatically by sleeping forretry-after
seconds and retrying the request. Otherwise this logic needs to be implemented in every user application.The text was updated successfully, but these errors were encountered: