question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid signature: 0x8080014 when piping from HTTP

See original GitHub issue

I am getting the following error when running node-unzip in combination with a http.get request, then piping it into node-unzip.

The code I use:

var extractor = unzip.Extract({path: tempPath});
extractor.on("close", function() {
    log.debug("Done downloading "+file);
    callback(null, file);
});
extractor.on("error", function (err) {
    log.error(err);
    callback(err, null);
});

http.get(url, function (res) {
    res.pipe(extractor);
});

tempPath is defined properly, and the said code works fine on Windows. Now, on my CentOS server, it outputs the error like this: invalid signature: 0x8080014

I’m 100% sure the XML file is valid, the exact file works on Windows.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:11

github_iconTop GitHub Comments

3reactions
woodedlawncommented, Apr 1, 2015

Thank you @dvalentiate

3reactions
dvalentiatecommented, Mar 30, 2015

Bad news: This repo appears to be abandoned. Good news: https://www.npmjs.com/package/unzip2 patches this problem and streaming of uncompressed zip content.

It comes down to the lines in lib/parse.js:161

setImmediate(function() {
  self._pullStream.unpipe();
  self._pullStream.prepend(extra);
  self._processDataDescriptor(entry);
});

should be

self._pullStream.unpipe();
self._pullStream.prepend(extra);
setImmediate(function() {
  self._processDataDescriptor(entry);
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

unzip error [Error: invalid signature: 0xff000001] - Stack Overflow
pipe(extractor);. The problem that In some zip file Im getting the error (in others its works fine) [Error: invalid signature: 0x8080014] [ ...
Read more >
Error "Invalid Signature" while downloading programs.
Click on "Advanced" tab. d. Scroll down to the Security section, check the Allow software to run or install even if the signature...
Read more >
(node:90923) UnhandledPromiseRejectionWarning: Error ...
I'm trying to send a serialized transaction but got the following error: (node:90923) UnhandledPromiseRejectionWarning: Error: Returned error: ...
Read more >
javascript - 要素 - php ページ タイトル 変更 - 入門サンプル
createReadStream(req.file.path).pipe(unzip. ... パッケージを必要とする、今問題は次のエラーunzipを取得しているIm:Error:invalid signature:0xff000001.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found