-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grpc-tools install fails roughly 50% of the time with "bad download" #1362
Comments
I started experiencing this once a new LTS node version was released. To fix, use a known working node version (for which grpc-tools binaries are available), for example 12.16.2. I wouldn't use non-LTS for CI. |
Weird issue 12.16.2 works fine. However patch version 12.16.3 fails. How is it possible node always breaks so easily... |
Seems that this "fix" might also work : #922 (comment) Edit: found the issue in needle: tomas/needle#312 |
I have published a new version of grpc-tools, which should pick up the new version of needle and fix this issue. |
This has surfaced again today with node v12.18.0 for me. |
node-pre-gyp 0.12.0 uses needle 2.4.1 which has the bug in it. Even with grpc 1.24.3, which refers to the updated version, it seems npm can decide to use the older version referenced by this package.
Update node-pre-gyp to pickup fix for #1362
I am using 14.6.0, latest LTS, and this is the case for me as well with version 1.8.1 of grpc-tools in my package.json. It is 1/2 to 1/3 of the time the same failure.
Re-running |
The new version of grpc-tools that I referred to in my previous comment was version 1.9.0. The latest version is 1.10.0. You are still experiencing the bug because you are installing version 1.8.1, which does not include the fix for this bug. |
Problem description
When installing,
node-pre-gyp
throws abad download
error.Reproduction steps
git clone https://github.com/grpc/grpc-node && cd grpc-node/packages/grpc-tools
npm i
until it failsDockerfile:
Environment
but we're also seeing this on Google Cloud Build and Github Actions
Additional context
The request is emitting the
err
event with:The text was updated successfully, but these errors were encountered: