Please consider retries for the Octokit client
See original GitHub issueIs your feature request related to a problem? Please describe.
I just ran into a problem where a call to the Github API unexpectedly returned a 404 error. This failed our workflow. The error was intermittent and wasn’t reproducible when I re-ran the job.
Describe the solution you’d like
I’d like any API calls made by the github
client to be retried, preferably using the retry plugin
Describe alternatives you’ve considered
I’ve considered adding the retry logic to our workflow but this defeats the purpose of having a pre-authenticated API client.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (2 by maintainers)
Top Results From Across the Web
octokit/rest.js
import { retry } from "@octokit/plugin-retry"; import { throttling } from ... The simplest way to receive debug information is to set the...
Read more >lib/gitlab/github_import/client.rb · master · GitLab.org / GitLab FOSS ...
HTTP client for interacting with the GitHub API. 6. #. 7. # This class is basically a fancy wrapped around Octokit while adding...
Read more >octokit - npm
The Octokit client can be used to send requests to GitHub's REST API ... only retries once octokit.log.info(`Retrying after ${retryAfter} ...
Read more >GitHub Automation with Octokit - Learn With Jason
You can do things like request retries. You can obviously keep state in terms of authentication. You can on some strategies require you...
Read more >Octokit Alternatives - Ruby Third-party APIs | LibHunt
Do you think we are missing an alternative of Octokit or a ... Octokit.rb wraps the GitHub API in a flat API client...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since not all consumers may want this behavior, we could support it behind an optional input
Until this is officially supported, we have achieved the same by using the
wrap
hook, here’s a great example from @gr2m: https://github.com/octokit/octokit.js/issues/1069#retry