Skip to content
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

Fail to uncompress zip file of 111 Mb #23

Open
qburst-akhil opened this issue Jul 10, 2018 · 2 comments
Open

Fail to uncompress zip file of 111 Mb #23

qburst-akhil opened this issue Jul 10, 2018 · 2 comments

Comments

@qburst-akhil
Copy link

I am reading data from an ftp stream using ssh2 (The entire code is not shown)
var readStream = sftp.createReadStream("/dir/filename.zip") readStream.pipe(unzip.Parse()) .on('entry', entry => { console.log(Inside transform callback....); s3Manipulator.writeStreamToBucket('bucket_nm', entry.path, entry) }) .on('error', err => { console.log(Error thrown streaming ${err}); });

I am running this from an ubuntu system it shows upload activity, but after a while the error callback is invoked. The error is given below:

code:"Z_DATA_ERROR" errno:-3 message:"invalid literal/lengths set" stack:"Error: invalid literal/lengths set\n at InflateRaw.zlibOnError (zlib.js:153:15)" __proto__:Object {constructor: , name: "Error", message: "", …}

I have no clue as to why this happens.
Any help is appreciated, thanks in advance.

@bi-kai
Copy link

bi-kai commented Aug 28, 2018

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)

similar problem, but with above error.
my zip file is above 200MB, if i use small ones, it;s ok.

@bi-kai
Copy link

bi-kai commented Aug 28, 2018

@qburst-akhil I'm using decompress module now, ant it's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants