github-vet / bots

Bots for running analysis on GitHub's public Go repositories and crowdsourcing their classification.
MIT License
1 stars 1 forks source link

rate-limiting only polls every 2 minutes once tripped. #95

Closed kalexmills closed 3 years ago

kalexmills commented 3 years ago

from the logs:

2020/12/25 21:41:18 failed to retrieve root commit ID for repo prog666/youtube-channels-parser
2020/12/25 21:41:18 repo prog666/youtube-channels-parser will be tried again despite error: GET https://api.github.com/repos/prog666/youtube-channels-parser: 403 API rate limit of 5000 still exceeded until 2020-12-25 21:45:57 +0000 UTC, not making remote request. [rate reset in 4m39s]
2020/12/25 21:41:18 rate limit hit; blocking until 2020-12-25T21:43:18Z

Looks like the rate-limiter is not using the duration returned from GitHub, so it's polling every 2 minutes to see if it can start again.