Uploading file to GCP with bucket.upload in @google-cloud/storage hangs #24232
Labels
bug
Something isn't working correctly
node compat
node:http
Issues with `node:http` module - to be fixed with a rewrite
deno --version
output:deno 1.44.2 (release, aarch64-apple-darwin)
v8 12.6.228.9
typescript 5.4.5
When uploading a file > 128 kib with the bucket.upload function in @google-coud/storage, the function hangs.
Tested with the script found here: #18730 (comment) and @google-cloud/storage@7.11.2
Steps to reproduce
await storage.bucket(bucketName).upload(filePath, { destination: fileName, onUploadProgress: console.log })
head -c 131073 </dev/random > myfile
deno run -A script.ts upload-file [bucketName] myfile ./myfile
With a 128 kib file, it finishes:
It works fine with tsx:
Related: #24215
The text was updated successfully, but these errors were encountered: