-
When I force network errors via DevTools request blocking 4 requests are blocked after each other. However, the application only makes one request. It seems Octokit tries to fetch 4 times in a row, when there is a network error. I could not find any resources on this, if it's true, can it be configured to stop after one failed request? Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you can disable request retries like this: new Octokit({ retry: { enabled: false } }) The |
Beta Was this translation helpful? Give feedback.
Yes, you can disable request retries like this:
The
retry
option is current not documented in this repository's README. If you could send a pull request and put it below thethrottle
option, that would be great. You could amend thethrottle
description that it can be disabled by setting it to{ enabled: false }
as well