-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
After I updated our server node JS to Node 10-alpine version I started to get next error
Error [ERR_STREAM_CANNOT_PIPE]: Cannot pipe, not readable.
I have to mention that with node 8-alpine this code is working (I tried with rollback)
In my code I am trying to return file from GCloud:
try {
const file = await
gcs.bucket(`BUCKET_NAME`).file(filePath);
if (file) {
const results = await file.getMetadata();
const stream = await file.createReadStream();
return res.pipe(stream);
else {
return send(res, 403)
}
}
else {
return send(res, 404);
}
} catch (err) {
console.error(err);
return send(res, 500);
}
Is any one met such issue after upgrade to node -10 -alpine?
Metadata
Metadata
Assignees
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.