automatic-releases
automatic-releases copied to clipboard
Handling GitHub API Rate Limits
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-Afterresponse header is present, retry your request after the time specified in the header. The value of theRetry-Afterheader will always be an integer, representing the number of seconds you should wait before making requests again.For example,
Retry-After: 30means you should wait 30 seconds before sending more requests.Otherwise, retry your request after the time specified by the
x-ratelimit-resetheader.
https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits