Comments (12)
I had the same issue. Switching to node-unzip-2 fixed it for me.
from node-unzip.
It sounds like the "block lengths" and "block types" errors might be separate issues.
I'm working with a 3.5 MB zip file. When I use the Mac OSX compression tool to create the zip (right click on a folder and click Compress), then run it through node-unzip, I get "invalid stored block lengths". When I compress the same directory using the zip
command line utility, then node-unzip extracts it just fine.
Maybe the storage format has some variations that we're not accounting for. I did a hex diff of the two files. I don't know if it's helpful to a keener eye than mine:
from node-unzip.
Actually there is a slight difference this result in an: Error: invalid block type if read through unzip. The signature itself seems to be read correctly.
from node-unzip.
I just ran into this on a few large zip files I was parsing with node-excel. It appears the signature is being read, however - any ideas on this? I haven't been able to get it to work simply by skipping the signature.
from node-unzip.
Ran into this same issue today with Unzip. Trace:
uncaughtException: invalid stored block lengths date=Fri Feb 07 2014 13:20:50 GMT-0600 (CST), pid=91702, uid=501, gid=20, cwd=<path>, execPath=/opt/local/bin/node, version=v0.10.21, argv=[node, <path>], rss=55934976, heapTotal=31139328, heapUsed=14503144, loadavg=[1.56640625, 1.62646484375, 1.3916015625], uptime=8404034, trace=[column=17, file=zlib.js, function=Zlib._binding.onerror, line=295, method=_binding.onerror, native=false], stack=[Error: invalid stored block lengths, at Zlib._binding.onerror (zlib.js:295:17)]
from node-unzip.
Anyone learn any more about this issue? I just tried to to use node-unzip on this zip file and it's not a signature problem (parse.js confirmed that the file's signature was 0x04034b50), but it still blows up with "invalid stored block lengths".
from node-unzip.
I am getting the same issue with [email protected]
& [email protected]
Says
Error: invalid signature: 0x80014
while extracting an .ipa file generated from Xcode 6.1. This was working fine for iOS 7 IPAs but started breaking for iOS 8 IPAs
from node-unzip.
+1 on this; also encountering this issue (Error: invalid signature: 0x80014
) when unzipping this book.
from node-unzip.
Anyone has any hints what this error means?
from node-unzip.
The problem is in parse.js. If you uncomment setImmediate in 161 than it works on my machine. And it seems logical. There is no need to wait for I/O events to finish. Actually that additional I/O events are executed is causing the problem.
// setImmediate(function() {
self._pullStream.unpipe();
self._pullStream.prepend(extra);
self._processDataDescriptor(entry);
// });
I'm using the latest version.
from node-unzip.
Just had the same issue. Thanks for the fix @jdonnerstag. Unfortunately I do not see a PR for this change. :(
from node-unzip.
+1
from node-unzip.
Related Issues (20)
- enhancement: Set option for deletion
- `me.error` is not a function HOT 1
- Error: invalid signature: 0x6064b50 HOT 2
- When using with typescript,the process may crash HOT 1
- Pipe signature on Entry
- Error: invalid signature: 0x70a4935 HOT 1
- Please remove dependency on 'natives HOT 5
- Does not work with nodejs v10.0.0 HOT 5
- Don't use under electron-main HOT 3
- extracted files corrupted HOT 1
- folder as file HOT 1
- DO NOT USE THIS THING HOT 8
- Not working with Node 12, primordials is not defined HOT 4
- Mode not preserved with Extract
- Update fstream to a secure version HOT 5
- Any way to pass in arguments like -j or -d from normal unzip?
- Dependency needs updating
- How to stop decompressing zip?
- primordials HOT 2
- unzipper.Parse doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-unzip.