Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling GitHub API Rate Limits #236

Open
ghostwriter opened this issue Apr 3, 2023 · 0 comments
Open

Handling GitHub API Rate Limits #236

ghostwriter opened this issue Apr 3, 2023 · 0 comments

Comments

@ghostwriter
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant