Skip to content

Handling GitHub API Rate Limits #236

@ghostwriter

Description

@ghostwriter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions