You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
After upgrading Node to version 20.11.0, running await bucket.file(fileLink).download(); throw the following error -
error: TypeError: Cannot read properties of null (reading 'length')
at getStateLength (/Users/nadavnagel/Documents/dev/zipoapps/integrations-service/node_modules/stream-shift/index.js:16:28)
at shift (/Users/nadavnagel/Documents/dev/zipoapps/integrations-service/node_modules/stream-shift/index.js:6:99)
at Duplexify._forward (/Users/nadavnagel/Documents/dev/zipoapps/integrations-service/node_modules/duplexify/index.js:170:35)
at PassThrough.onreadable (/Users/nadavnagel/Documents/dev/zipoapps/integrations-service/node_modules/duplexify/index.js:136:10)
at PassThrough.emit (node:events:518:28)
at emitReadable_ (node:internal/streams/readable:832:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21),
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
OS:
Node.js version: 20.11.0
npm version:
@google-cloud/storage version: 7.7.0
Steps to reproduce
Upgrade to node version 20.11.0
Try to execute await bucket.file(fileLink).download(); on any file.
Making sure to follow these steps will guarantee the quickest resolution possible.
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/catchand 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/storageversion: 7.7.0Steps to reproduce
20.11.0await bucket.file(fileLink).download();on any file.Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!