-
Notifications
You must be signed in to change notification settings - Fork 370
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
Downloading file fails when running on Node version 20.11.0 'Iron' (LTS) #2391
Comments
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
The popular stream-shift library accesses internal Readable state which has been modified. Refs: googleapis/nodejs-storage#2391 Refs: mafintosh/stream-shift#10 PR-URL: nodejs#51470
I was experimenting the same issue but with a docker image. Specifiying the version of my nodejs in my Dockerfile did the job for me: FROM node:20.10-buster-slim The version I'm using of "@google-cloud/storage" is "^7.3.2" |
We experience these errors as well since upgrading from Node.js v20.10 to v20.11. It seems this is due to a change to private properties in nodejs/node#50341 |
We faced the same problem. After a normal version update, the Download function stopped, and all our systems using download crashed. We switched back to an old revision. It needs to be fixed as soon as possible, we can't update the API anymore. |
Hi all, I just want to reconfirm that this issue is arising when updating to Node v20.11? Has any other version been problematic? |
Yes. Now v20.11.0 is the lts version so a lot of people will start using it. |
It looks like the suggestion from @wvanderdeijl (#2391 (comment)) is likely the fix. It appears that |
I asked the maintainer to push |
@nadavzipo I'll keep an eye on duplexify to see when it gets updated and bump here accordingly. |
Thanks for the investigation! |
Description
After upgrading Node to version 20.11.0, running
await bucket.file(fileLink).download();
throw the following error -The error isn't caught by the function
try/catch
and only by.on('uncaughtException',
handler.The error also happens when trying to create readable stream.
I think the issue happens because of node change of handling streams - nodejs/node#50341
Environment details
@google-cloud/storage
version: 7.7.0Steps to reproduce
20.11.0
await bucket.file(fileLink).download();
on any file.Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: