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

https://lichess.org/inbox/{username} report {"error":"Error 429: Too many requests! Try again later."} despite 1 sec rate limt #90

Open
Ptg2 opened this issue Mar 1, 2021 · 3 comments

Comments

@Ptg2
Copy link

Ptg2 commented Mar 1, 2021

Hello

An application using 1 sec rate limiting on requests runs into

{"error":"Error 429: Too many requests! Try again later."}

Unless there is some more complex rate limitations this seams to be a bug

Please note that less than 50 inbox request has been sent in the last 24H

@benediktwerner
Copy link
Member

There's no guarantee that you won't get rate limited simply by keeping requests to 1/s. The API docs explicitly state you should start with 1/s but wait at least 1 min after getting a 429.

@ornicar
Copy link
Contributor

ornicar commented Apr 29, 2021

Which endpoint did you hit and how many times did you hit it?

@Ptg2
Copy link
Author

Ptg2 commented Apr 29, 2021

Even at a rate of 1 message per 1min 10 sec does not work in certain cases and proves there is a more complex rate limit algorithm in place. Unfortunately, the API documentation seems to be silent on this.

Using trial and error I could reverse engineer what seems to be what in place is that an additional rate limit is impose of a max of 20 messages per 24H if you are sending a message to someone you have never messages successfully before.
I suggest that this is validated as a correct interpretation and this information is added to the API reference documentation.

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

3 participants