Skip to content

Add exponential retry logic if Github API returns 500 #87

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

the-gigi
Copy link

Yesterday we noticed that Github sometimes returns 500 (internal error) from API calls. For example:

Start processing validator: merge-gatekeeper....
Finish validator: merge-gatekeeper processing.
Error: validation failed, err: GET https://api.github.com/repos/invisible-platforms/invisible/commits/2aa531ef26cec2cbb26cd1f772b78f42b40ab064/check-runs?page=1&per_page=100: 500  []
failed to execute command: validation failed, err: GET https://api.github.com/repos/invisible-platforms/invisible/commits/2aa531ef26cec2cbb26cd1f772b78f42b40ab064/check-runs?page=1&per_page=100: 500  []

This PR solve the problem by retrying failed API calls.

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

Successfully merging this pull request may close these issues.

1 participant