Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unsupported zip version #42

Open
1Map opened this issue Dec 2, 2021 · 4 comments
Open

Unsupported zip version #42

1Map opened this issue Dec 2, 2021 · 4 comments

Comments

@1Map
Copy link

1Map commented Dec 2, 2021

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)
@mickeyjohn
Copy link

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

@gazal-k
Copy link

gazal-k commented Feb 2, 2023

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)

@1Map
Copy link
Author

1Map commented Feb 6, 2023

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

@gazal-k
Copy link

gazal-k commented Feb 6, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants