Git Product home page Git Product logo

Comments (11)

satazor avatar satazor commented on July 16, 2024

@EvanOxfeld turns out that sometimes weird things arrive to the readable-stream:

<Buffer 6f 66 20 57 61 72 72 61 6e 74 79 2e 20 55 6e 6c 65 73 73 20 72 65 71 75 69 72 65 64 20 62 79 20 61 70 70 6c 69 63 61 62 6c 65 20 6c 61 77 20 6f 72 0d 0a ...>
null
<Buffer 7d 92 47 52 6e 83 1d b8 3d 92 b2 1a ec 71 f6 b4 bf 9e 84 bf 0a e8 17 ba 23 7e a1 3b 92 f2 16 8e 3c 0d c3 2f 17 47 b0 74 04 0f 47 cc fa 48 45 b8 62 1e a9 ...>
{ buffers: [], length: 0 } <<<< this is strange!

from node-unzip.

jamessharp avatar jamessharp commented on July 16, 2024

I've been getting this too

With a setup of something like

var rs = fs.createReadStream(filename);
rs.on('data', function(data) {
  console.log(data);
}).on('close', function() {
  console.log('close');  
});

rs.pipe(unzip.Parse());

I get the following output

<Buffer 50 4b 03 04 0a 00 00 00 00 00 51 8e be 42 00 00 00 00 00 00 00 00 00 00 00 00 09 00 10 00 48 6f 67 77 61 72 74 73 2f 55 58 0c 00 6a 83 a7 51 5a 83 a7 51 ...>
<Buffer 39 64 c6 c0 1a 60 1b 1b 04 74 5e 37 f6 9d 50 07 b3 a6 fe c8 38 81 cb 92 10 1a 92 42 d4 a0 cc ec 69 c2 28 c7 d1 02 44 95 09 2b 02 5d 10 dd af 4c ca 25 cd ...>
closed
{ buffers: [], length: 0 }

so it looks like a stream somewhere is accepting input after being closed

I've reverted to 0.1.5 for now.

from node-unzip.

danielzzz avatar danielzzz commented on July 16, 2024

I have the same issue with bower 0.9.2 and node 0.10.3 - it throws an error on all zip files when trying to install https://github.com/opitzconsulting/angular-jqm
I works fine with git repos, so I guess it might be this package

from node-unzip.

roytruelove avatar roytruelove commented on July 16, 2024

@danielzzz Same issue here, don't think it's specific to the packages you're using. Looks like the Bower guys are aware of it: #16 (comment)

from node-unzip.

jednano avatar jednano commented on July 16, 2024

Same problem in Node v0.10.32, almost a year and a half after this issue was reported.

from node-unzip.

yocontra avatar yocontra commented on July 16, 2024

Also getting this issue with anything that uses streams - very weird. node 0.10.32

from node-unzip.

oshingc avatar oshingc commented on July 16, 2024

Same problem here...

from node-unzip.

PavelPikat avatar PavelPikat commented on July 16, 2024

Same problem in Node 7.4.0

from node-unzip.

keyiis avatar keyiis commented on July 16, 2024

Same problem in Node 6.9.2
fs.createReadStream(dbFilePath).pipe(zlib.createGzip()).pipe(fs.createWriteStream(dbFilePath+'.gz'));

from node-unzip.

Tarlord avatar Tarlord commented on July 16, 2024

Got the same problem in Node v11.14.0 is there a fix yet?

from node-unzip.

adjenks avatar adjenks commented on July 16, 2024

I get this problem using a steam created with streamifier.

from node-unzip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.