You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.
I am facing Error: Downloaded size does not match Content-Length when I call downloadDir
I am downloading the s3 folder with various .ts files with various size (5MB - 300MB)
Error: Downloaded size does not match Content-Length at MultipartETag.<anonymous> (/home/xxx/yyy/node_modules/s3/lib/index.js:482:25) at MultipartETag.emit (events.js:198:13) at MultipartETag.EventEmitter.emit (domain.js:448:20) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19)
How do I fix it?
Thanks.
The text was updated successfully, but these errors were encountered:
I just thought I'd update this: although the auth0 version seemed to fix it for one case, I still ran into this issue. Further investigation led me to a different library whose Readme contains the following explanation for its existence:
Why would I use this instead of node-s3-client?
In order to compare files, node-s3-client attempts to reimplement the hashing algorithm used by the AWS API in creating an s3 object's etag. My experience is that is doesn't always work (especially with large files).
I'm therefore giving up on this library and its forks, at least for now, and investigating alternatives.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am facing
Error: Downloaded size does not match Content-Length
when I calldownloadDir
I am downloading the s3 folder with various .ts files with various size (5MB - 300MB)
Error: Downloaded size does not match Content-Length at MultipartETag.<anonymous> (/home/xxx/yyy/node_modules/s3/lib/index.js:482:25) at MultipartETag.emit (events.js:198:13) at MultipartETag.EventEmitter.emit (domain.js:448:20) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19)
How do I fix it?
Thanks.
The text was updated successfully, but these errors were encountered: