unzip-stream icon indicating copy to clipboard operation
unzip-stream copied to clipboard

Unsupported zip version

Open 1Map opened this issue 4 years ago • 4 comments

I get error like:

Zip version 78.8 is not supported
at Immediate.<anonymous> (/myapp/node_modules/unzip-stream/lib/unzip-stream.js:355:33)
at processImmediate (node:internal/timers:464:21)

1Map avatar Dec 02 '21 06:12 1Map

Hi @1Map , Could you please share a sample zip file for the error? Thanks

mickeyjohn avatar Sep 28 '22 18:09 mickeyjohn

Sample zip to reproduce the issue: zip-78_8_not_supported.zip

Snippet for extraction:

createReadStream('/tmp/zip-78_8_not_supported.zip')
	.pipe(Parse())
	.on('entry', (entry: Entry) => {
		if (entry.type === 'Directory' || entry.path.startsWith('__MACOSX/') || entry.path.endsWith('.DS_Store')) {
			entry.autodrain();
			return;
		}
		console.log(`${entry.type} ${entry.path}`);
		entry.autodrain();
	}).on('close', () => console.log('done'));

Output:

File 63286267-IMG-000.jpg

<path>/node_modules/unzip-stream/lib/unzip-stream.js:355
            entry.emit("error", new Error(message));
                                ^
Error: Zip version 78.8 is not supported
    at Immediate.<anonymous> (<path>/node_modules/unzip-stream/lib/unzip-stream.js:355:33)
    at processImmediate (internal/timers.js:464:21)

gazal-k avatar Feb 02 '23 00:02 gazal-k

This is now more than a year, and still getting this error

1Map avatar Feb 06 '23 08:02 1Map

This repository, like many other OSS projects may not have any sponsorship / funding. Someone would need to contribute to this out of their own goodwill or their paid work would need to allow for a contribution to this.

gazal-k avatar Feb 06 '23 09:02 gazal-k