Out of GitHub API rate limit
Solved
Release Bell
-
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?
-
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.