-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: ReadableStream is not defined (lib-storage chunker error on Node.js) #2522
Comments
Hi @garrett-hopper thanks for brining this is up, It was not a bug with GH actions, the issue was closed intially because of lack of response, which is set to 10 days, then the another GH action locks the thread with no activity for 14 days which was after your comment, we tend to lock the threads since they are not so visible after being locked and we encourage to open new issues if thats the case. With that being said, I have re-opened the issue but it seems like Alex was not able to reproduce the issue, can you try running his code? I'll take more questions on other issue, feel free to tag me or anything for any questions. |
Ah, that makes sense. Thanks! |
It looks like #2312 is still locked, so I can't comment there. npm i @aws-sdk/lib-storage tar
node -e "require('@aws-sdk/lib-storage/dist/cjs/chunker').getChunk(require('tar').c({gzip: true}, ['test']))"
|
I ended up switching from |
I'll close the other one and keep this one opened. |
I'm also seeing this error with streams created by into-stream. Maybe we can take inspiration from this module? https://github.com/sindresorhus/is-stream/blob/main/index.js |
A workaround is to pipe the stream through a PassThrough stream: const { PassThrough, pipeline } = require('stream');
const passThrough = new PassThrough();
pipeline(stream, passThrough, () => {});
const upload = new Upload({
client: new S3({}),
params: {
Bucket: '...',
Key: '...',
Body: passThrough,
},
leavePartsOnError: true,
}); |
I have the exact same problem. I'm trying to upgrade SDK from v2 to v3. v2:
v3:
But I get the error:
Thanks @mifi for the workaround. It seems it works. |
Related: #1877 (comment) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sorry for the noise, but can #2312 be reopened? It was closed and later locked with a mentioned of no "recent activity" despite there being a couple comments about it not being resolved.
Was this a bug in the GitHub action not seeing the following comments?
The text was updated successfully, but these errors were encountered: