Getting 429 Too Many Requests
when GET-ting https://github.com/<org>/<repo>/(?:blob|tree)/.*
links
#158213
Replies: 5 comments 7 replies
-
Use a Access Token. Also there is a header within the Github response that will tell you how many requests you have before they throttle your access. I tend to add sleeps until that value resets. That amount is much less without a token. Look at how I did it within my Orphaned Commit scanner tool: I looked at the 'X-RateLimit-Remaining' and the 'x-ratelimit-reset' header values to manage my interactions. Detailed Steps:
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestions, @Marantral! I think your situation is a bit different than mine: you access the GitHub API via |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
not very sure of your situation, but here are the possible workarounds maybe :
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Our project contains sources of Antora documentation site. We validate all links available in our docs on every pull request.
Among others, we have a few tens of links referring to various source files on GitHub. Because we maintain the documentation separately for all active LTS (long term support) branches, those links are pointing to source files in specific branches. Here are some examples:
The validation consists in sending an anonymous GET request to those URLs - that's basically what readers of our documentation would do. We use jsoup without setting any special user agent or any other request headers.
It worked fine till one or two days ago. Now, there seem to be a Rate limit of 4 requests per minute set for
https://github.com/<org>/<repo>/blob/...
andhttps://github.com/<org>/<repo>/tree/...
URLs.That makes our testing slower by ~7 minutes, thus burning a lot of CPU time on GH Actions workers.
More observations:
Could you please suggest, how can we make our testing fast again?
Beta Was this translation helpful? Give feedback.
All reactions