-
-
Notifications
You must be signed in to change notification settings - Fork 958
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
Weblate throttling #6128
Comments
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
The /exports/ endpoint are not covered by the API endpoints (and do not accept API like authentication). For the /api/ are you sure all your requests are authenticated? In case they are not, you are having way lower limits and these requests would fail earlier... |
Authenticated requests are requests with Authorization header, right? I have authorization header. |
I have tried again different combinations of header. Now it works. The problem was in header. I've tried just token and token with word Token, but I've forgot to add space between token and word "Token" Thanks |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
...or use wlc which does that properly for you. |
Apparently some users don't read the examples, so put it here as well. Issue #6128
By the way, I'm getting 429 again, with proper authentication. And "Retry-After" 5000sec. And I really think, that throttling is not kind of feature, that should be turned on by default. |
I think you are still doing some unauthenticated requests (the retry after is longer that the rate limit window for authenticated users). If you really need more than 5000 requests per hour, you can adjust your configuration. I think this is reasonable default, for example it matches what GitHub does. |
Yes, I agree. And I've investigated this. |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
This can easily break things, so force people to use correct URLs. Issue #6128
Describe the issue
Weblate API throttling works unpredictable. No throttling options are rewritten, I have default 5000 per hour for authorized user. After random number of requests (2-5), Weblate returns Too Many Requests.
In headers of the response I got:
I already tried
Requests on different endpoints:
One of them - /exports/stats/xxx/xxx - works fine, other return 429
I read all parts about rate limiting, only one of them is about api rate limiting. And there was nothing useful about why I'm getting 429 after 5-10 requests within 5-10 minutes.
The text was updated successfully, but these errors were encountered: