Skip to content

On network error trying to fetch 4 times, configurable? #2351

Answered by gr2m
devidw asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can disable request retries like this:

new Octokit({ retry: { enabled: false } })

The retry option is current not documented in this repository's README. If you could send a pull request and put it below the throttle option, that would be great. You could amend the throttle description that it can be disabled by setting it to { enabled: false } as well

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by devidw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants