Closed MuthuD closed 7 years ago
Can you double check the version of google-cloud-node
that you're using? Only the latest release will retry on errors such as a socket timeout.
Hi Stephen,
Thanks for the response.
I'm using version @google-cloud/storage: "0.7.0"
I will try with version 1.1.1 and let you know if there is any issue.
Thanks
@MuthuD how did it go?
Hey there, thought I would chime in here before opening a new issue in the nodejs-storage
repo. I got the exact same issue on version 2.0.1.
Here is the code producing the error:
const readline = require('readline');
const storage = new Storage({projectId: config.projectId});
const bucket = storage.bucket(config.bucketName);
const remoteFile = bucket.file('events.txt');
const lineReader = readline.createInterface(remoteFile.createReadStream());
lineReader.on('line', /* do stuff */);
The code runs on GCE:
It reliably times out after 60 seconds of streaming.
Let me know if you need any further information.
Thanks! Opening this on the nodejs-storage repo is absolutely the way to go though 👍
👍 Okay, added a comment to a similar issue: https://github.com/googleapis/nodejs-storage/issues/27#issuecomment-420534576
Hi,
We transform a large binary file (>150MB up to GBs) and publish the data to pubsub.
Steps to reproduce
google-cloud
readStream: Reads large file from bucket directly from bucket transformStream: Does some operation writeStream: publishes transformed data to cloud pubsub
Problem, readStream receives ESOCKETTIMEDOUT error more often, how to handle this is this value configurable through code?
Thanks