Skip to content

Commit

Permalink
fix(http): Throw ExternalHostError on ECONNRESET (#9000)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Mar 5, 2021
1 parent 39dcd84 commit bf5cb0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/http/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function handleGotError(
err.name === 'RequestError' &&
(err.code === 'ENOTFOUND' ||
err.code === 'ETIMEDOUT' ||
err.code === 'EAI_AGAIN')
err.code === 'EAI_AGAIN' ||
err.code === 'ECONNRESET')
) {
logger.debug({ err }, 'GitHub failure: RequestError');
throw new ExternalHostError(err, PLATFORM_TYPE_GITHUB);
Expand Down

0 comments on commit bf5cb0f

Please sign in to comment.