Skip to content

chore: retry downloads on retryable errors#3308

Merged
lukekarrys merged 1 commit intonodejs:mainfrom
dsanders11:chore/retry-download
Apr 25, 2026
Merged

chore: retry downloads on retryable errors#3308
lukekarrys merged 1 commit intonodejs:mainfrom
dsanders11:chore/retry-download

Conversation

@dsanders11
Copy link
Copy Markdown
Contributor

Assisted-by: Claude Opus 4.6

Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • commit message follows commit guidelines
Description of change

Fixes #2847

This is a reworking of #3298 after the changes in #3302 landed.

Retries downloads up to 3 times to ensure a transient network error (we've seen ECONNRESET from time to time) doesn't cause the whole thing to fail. This will retry for retryable errors (including 429 and 500 response status codes), and I've added test coverage to validate the behavior.

Assisted-by: Claude Opus 4.6
Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
@dsanders11 dsanders11 marked this pull request as ready for review April 25, 2026 05:23
@lukekarrys lukekarrys merged commit 0793489 into nodejs:main Apr 25, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Random HTTP 500 statuses or ECONNRESET when node-gyp fetches dependencies

2 participants