Out of GitHub API rate limit
-
Hi,
after upgrade Release Bell to v1.7.0 I faced with GitHub API limit exceeded:$ > date +%s 1622226172 # Fri, 28 May 2021 21:22:52 +0300 $ > curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/ ... < x-ratelimit-limit: 5000 < x-ratelimit-remaining: 0 < x-ratelimit-reset: 1622229106 # Fri, 28 May 2021 22:11:46 +0300 < x-ratelimit-used: 5005 < x-ratelimit-resource: core ...I have starred 177 repos of which only 130 have tags/releases
(see https://github.com/SmartFinn?tab=stars)Is it possible to reduce API calls?
-
Hi,
after upgrade Release Bell to v1.7.0 I faced with GitHub API limit exceeded:$ > date +%s 1622226172 # Fri, 28 May 2021 21:22:52 +0300 $ > curl -v -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/ ... < x-ratelimit-limit: 5000 < x-ratelimit-remaining: 0 < x-ratelimit-reset: 1622229106 # Fri, 28 May 2021 22:11:46 +0300 < x-ratelimit-used: 5005 < x-ratelimit-resource: core ...I have starred 177 repos of which only 130 have tags/releases
(see https://github.com/SmartFinn?tab=stars)Is it possible to reduce API calls?
-
@smartfinn Indeed, we have been seeing this in our installation as well. Debugging. It seems something related to the latest release 1.7.0.
-
The latest package release now has a few fixes to workaround the rate-limits (5000 requests per hour):
- Remove unnecessary extra requests by using the local database better
- Randomize request order to eventually catch all releases if
- Less parallel requests
- Take rate-limit reset time into account when to retry
Hope this improves the situation.
-
I've tried to fix it now, it is currently deployed to our internal instance to see how it behaves, before we make a package release.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login