-
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
Seeing a lot of 429 status code #26
Comments
Hello! That's a lot of 429 indeed. However, I don't use the league endpoint that much. I'm wondering if maybe you're hitting "Service Rate limit" as described in https://developer.riotgames.com/rate-limiting.html The doc mentions that whenever this happens, the If you can, add some logging on Lines 142 to 158 in b3ce7be
res.headers and see if you can get a better understanding of what's going on in your use case.
Tell me if I can help! |
Thank you for the quick response! I believe you are correct, we think our issue is the service limit. Do you have any advice regarding this issue ? is there anything that can be done on the library side or is there no way to avoid this ? |
From my understanding, this happens when the Riot API client (on Riot side) is blocked from accessing the resources. The API acts as a gateway, and sometimes the underlying service return a 429. The current behavior for this library is to read the requested Retry-After header and use it, and when it's not provided to wait for 2s before retrying: Line 146 in b3ce7be
It seems that 2s is not enough for your use-case. |
Thank you so much for the help! |
Cool! Keep me updated 😎 |
Hey sorry for the delay, |
Originally posted by @cohenu on #21 (comment):
The text was updated successfully, but these errors were encountered: