Closed atombender closed 8 years ago
Can you upload the offending file somewhere? Will be hard to reproduce otherwise.
Unfortunately, it happens seemingly randomly among a huge load of files archived on S3. I've since moved to a native bzip2 NPM module, since yours proved to be about 10x slower than native.
I'm seeing the same thing for basically any truncated bz2 file I make. There will be slight differences in the location in bzip2.js (line 272, line 277, etc.) depending on exactly where the file is cut off.
looks like it's because of the filtering of Bzip2Error
s from other errors here. Looks like it's been broken since the initial commit?
Not sure if there's a good reason to do it that way, so I'll put in a pull request.
@atombender what did you end up switching to?
@tedbrandston: Switched to this. No complaints so far.
Fixed in 1.0.10
There's a possibility that my data is corrupt. Regardless, the stream shouldn't throw a random error like this.