Skip to content
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

Rate limiting for challenge creation is not clearly documented #264

Open
th0masb opened this issue Jul 4, 2023 · 3 comments
Open

Rate limiting for challenge creation is not clearly documented #264

th0masb opened this issue Jul 4, 2023 · 3 comments

Comments

@th0masb
Copy link

th0masb commented Jul 4, 2023

Hi, I'm basically trying to get my bot to play as many games as the rate limiting allows. All I've seen in the docs is:

All requests are rate limited using various strategies, to ensure the API remains responsive for everyone. Only make one request at a time. If you receive an HTTP response with a 429 status, please wait a full minute before resuming API usage.

So when I encounter a 429 for challenge creation I backoff for 2 mins, but then I still get 429 responses for hours afterwards when making a request at 2 min intervals. The docs indicate I'm backing off for a sufficient amount of time but clearly I'm not. What duration is being used to measure the request rate?

Worth noting I'm continuing to have the event stream held open in parallel while making challenges, would this be causing continuous 429 responses?

@benediktwerner
Copy link
Member

The amount of challenges is limited per day. In general, it's also a good idea to increase the backoff duration on repeated 429s.

@th0masb
Copy link
Author

th0masb commented Jul 6, 2023

Thanks, it would be good to put some more specifics about rate limits on the docs for the various endpoints, the max number of request and duration. Appreciate it might be a lot of effort though. Where are the limits defined in the repo?

@benediktwerner
Copy link
Member

It's not centralized. Though most of the time, it's in the controller defining the endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants