buildpacks-nodejs icon indicating copy to clipboard operation
buildpacks-nodejs copied to clipboard

Add retries to Node.js binary download

Open edmorley opened this issue 7 months ago • 0 comments

To reduce the chance of intermittent failures like:

[Heroku Node.js Engine Buildpack]

[Checking Node.js version]
Detected Node.js version range: >=20.0.0 <21.0.0-0
Resolved Node.js version: 20.15.0

[Installing Node.js distribution]
Downloading Node.js 20.15.0 (linux-amd64) from https://nodejs.org/download/release/v20.15.0/node-v20.15.0-linux-x64.tar.gz

[Error: Node.js engine distribution error]
Couldn't download Node.js distribution: I/O error while downloading file: response body closed before all bytes were read

As seen in: https://github.com/heroku/cnb-builder-images/actions/runs/9699157499/job/26767524369?pr=541#step:6:27 https://github.com/heroku/cnb-builder-images/actions/runs/9699157499/job/26767523738?pr=541#step:6:28

edmorley avatar Jun 27 '24 17:06 edmorley