Skip to content

Commit

Permalink
Merge pull request #269 from JupiterOne/INT-10529-improv16
Browse files Browse the repository at this point in the history
retry econnreset error
  • Loading branch information
RonaldEAM committed Apr 19, 2024
2 parents a0af460 + 6719b64 commit 4a7f5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Expand Up @@ -634,7 +634,7 @@ export class APIClient extends BaseAPIClient {
delay: this.retryOptions.delay,
factor: this.retryOptions.factor,
handleError: async (err, context) => {
if (err.code === 'ETIMEDOUT') {
if (err.code === 'ECONNRESET' || err.code === 'ETIMEDOUT') {
return;
}

Expand Down

0 comments on commit 4a7f5f4

Please sign in to comment.