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
// Creates a clientconststorage=newStorage();// Get a reference to the bucketconstmyBucket=storage.bucket(bucketName);// Create a reference to a file objectconstfile=myBucket.file(destFileName);// Create a pass through stream from a stringconstpassthroughStream=newstream.PassThrough();passthroughStream.write(contents);passthroughStream.end();asyncfunctionstreamFileUpload(){passthroughStream.pipe(file.createWriteStream()).on('finish',()=>{// The file upload is complete});console.log(`${destFileName} uploaded to ${bucketName}`);}streamFileUpload().catch(console.error);
But at every call, I am receiving this error ==> 'NoneType' object is not callable
I did the same test using a real bucket on Google cloud storage and it works flawlessly, I guess this is related to some methods not implemented yet in this emulator nope ?
Thanks again 👍
The text was updated successfully, but these errors were encountered:
Hello there, thanks for this awesome package. I am currently using it in a docker-compose env + a nodejs fastify application running on node 20.
I am trying to stream a file upload to a bucket, following the samples from google there ==> https://github.com/googleapis/nodejs-storage/blob/main/samples/streamFileUpload.js
But at every call, I am receiving this error ==>
'NoneType' object is not callable
I did the same test using a real bucket on Google cloud storage and it works flawlessly, I guess this is related to some methods not implemented yet in this emulator nope ?
Thanks again 👍
The text was updated successfully, but these errors were encountered: