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

Invalid non-string/buffer chunk #25

Open
satazor opened this issue May 3, 2013 · 11 comments
Open

Invalid non-string/buffer chunk #25

satazor opened this issue May 3, 2013 · 11 comments

Comments

@satazor
Copy link

satazor commented May 3, 2013

Since 0.1.6 there's been a lot of errors like this.
One of the packages that have this issue is:
http://reality.sgiweb.org/maxw/tmp/bower/Open_Sans.zip

With 0.1.5 it works with the above zip file. Also works with common tools to extract zip files on OS.
Unfortunately, 0.1.5 is not compatible with node 0.10.x.

@satazor
Copy link
Author

satazor commented May 3, 2013

@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!

@jamessharp
Copy link

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.

@danielzzz
Copy link

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

@roytruelove
Copy link

@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)

@jednano
Copy link

jednano commented Oct 19, 2014

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

@yocontra
Copy link

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

@oshingc
Copy link

oshingc commented Apr 26, 2016

Same problem here...

@PavelPikat
Copy link

Same problem in Node 7.4.0

@keyiis
Copy link

keyiis commented Sep 6, 2017

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

@Tarlord
Copy link

Tarlord commented Apr 19, 2019

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

@adjenks
Copy link

adjenks commented Oct 11, 2019

I get this problem using a steam created with streamifier.

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