Closed arnavzek closed 6 months ago
Hi Arnav, thanks for your report. I have some follow-up questions about your environment.
Is this an intermittent error or does it happen every single time on Beanstalk? Does it only happen on media operations (upload/download) or does it also happen on metadata operations (object.get, bucket.get, etc.)? Is it possible your workload is timing out in some way, causing Beanstalk to terminate open connections? Do you have free access to local disk in the location you are reading or writing?
@andrewsg I'm experiencing the same error when the function runs on GCP.Cloud Functions NodeJS
. It happens every single time for uploads
.
7.5.0
is the last working version.
It happens every single time. I don't think, I can help isolate this issue because I have switched to S3.
@arnavzek does it occur when resumable: true
or only when resumable: false
as in your example above?
@MadeinFrance would you be able to provide a code snippet that demonstrates the behavior on Cloud Functions? What Node version are you utilizing?
@ddelgrosso1 same as @arnavzek provided with resumable: false
, NodeJS v20
.
import { Storage } from "@google-cloud/storage";
const storage = new Storage({
projectId: 'id',
});
const bucket = storage.bucket('bucket_id');
const blob = bucket.file(name);
const stream = blob.createWriteStream({
metadata: {
contentType: 'webp',
},
resumable: false,
});
Apologies for the late reply, circled back on this today @MadeinFrance. I tried this in GCP Cloud Functions utilizing v7.8.0 of the library and was not able to reproduce the error. Are there any other steps of configuration you might be able to provide that would be helpful in recreating the issue?
@ddelgrosso1 hi there, it's not reproducible on v7.9.0
, I will stay on the latest version.
Going to close this out. If additional information becomes available please feel free to reopen / create a new issue.
Environment details
@google-cloud/storage
version: 7.7.0Steps to reproduce
The library is working fine locally and one AWS EC@ but it produces the following error when deployed to AWS Beanstalk
Code