Skip to content

chore: retry downloads on retryable errors#3298

Open
dsanders11 wants to merge 1 commit intonodejs:mainfrom
dsanders11:retry-download
Open

chore: retry downloads on retryable errors#3298
dsanders11 wants to merge 1 commit intonodejs:mainfrom
dsanders11:retry-download

Conversation

@dsanders11
Copy link
Copy Markdown
Contributor

@dsanders11 dsanders11 commented Apr 12, 2026

Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

Fixes #2847

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. make-fetch-happen makes it easy to retry for retryable errors (including 429 and 500 response status codes), and I've added test coverage to validate the behavior.

@dsanders11
Copy link
Copy Markdown
Contributor Author

Test failures for "Lint Python" and "Test Pack" seem unrelated and preexisting in CI.

Assisted-by: Claude Opus 4.6
Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
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

1 participant