Skip to content

Commit

Permalink
add all needed errorCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayys committed Feb 7, 2024
1 parent d349f66 commit 7cf5491
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ const main = async () =>
got.stream(url, {
retry: {
limit: 10,
errorCodes: [
'ETIMEDOUT',
'ECONNRESET',
'EADDRINUSE',
'ECONNREFUSED',
'EPIPE',
'ENOTFOUND',
'ENETUNREACH',
'EAI_AGAIN',
'ERR_NON_2XX_3XX_RESPONSE',
],
}
}).on('downloadProgress', progressHandler),
createWriteStream(tmp, {
Expand Down

0 comments on commit 7cf5491

Please sign in to comment.