automatic-releases icon indicating copy to clipboard operation
automatic-releases copied to clipboard

Handling GitHub API Rate Limits

Open ghostwriter opened this issue 2 years ago • 0 comments

Issue Description:

[RuntimeException]                                                          
 API call to GitHub failed with status code 403 and message:
"You have exceeded a secondary rate limit. Please wait a few minutes before you try again."

Proposed Solution:

If the Retry-After response header is present, retry your request after the time specified in the header. The value of the Retry-After header will always be an integer, representing the number of seconds you should wait before making requests again.

For example, Retry-After: 30 means you should wait 30 seconds before sending more requests.

Otherwise, retry your request after the time specified by the x-ratelimit-reset header.

https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits

ghostwriter avatar Apr 03 '23 20:04 ghostwriter