Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unexpected "Extra bytes past the end" error when decompressing data in Safari 16.4 #412

Closed
Rajek88 opened this issue May 4, 2023 · 17 comments

Comments

@Rajek88
Copy link

Rajek88 commented May 4, 2023

Hi, I would like to report an issue,
On Safari 16.3, and all other latest browsers, everything worked perfectly fine,
But on Safari 16.4, it started me giving the error
"
[Error] Unhandled Promise Rejection: TypeError: Extra bytes past the end.
pipeToFinalize
(anonymous function)
"
When I try to download and extract a zip from the internet, And yes the zip I am trying to use is not corrupt or incomplete, It was working fine with Safari 16.3,

Any help is appreciated, Thanks

@gildas-lormeau
Copy link
Owner

gildas-lormeau commented May 4, 2023

You should report this bug to Apple. Are you sure you're using the stable version of Safari? Also, do you confirm you don't see this bug in a Chromium-based browser?

Does setting the option useCompressionStream to false fix the issue?

@Rajek88

This comment was marked as resolved.

@gildas-lormeau

This comment was marked as resolved.

@Rajek88

This comment was marked as resolved.

@Rajek88

This comment was marked as resolved.

@gildas-lormeau

This comment was marked as resolved.

@gildas-lormeau

This comment was marked as resolved.

@AshleyScirra

This comment was marked as resolved.

@gildas-lormeau

This comment was marked as resolved.

@Rajek88
Copy link
Author

Rajek88 commented May 4, 2023

You should report this bug to Apple. Are you sure you're using the stable version of Safari? Also, do you confirm you don't see this bug in a Chromium-based browser?

Does setting the option useCompressionStream to false fix the issue?

Yes, tried by turning useCompressionStream to false and it worked!
Thank you so much @gildas-lormeau

@gildas-lormeau
Copy link
Owner

You're welcome. I reported the bug here: https://bugs.webkit.org/show_bug.cgi?id=256330. Feel free to provide more info if you can. Ideally, it would be great if you could provide a zip file to reproduce the bug.

@Rajek88

This comment was marked as resolved.

@gildas-lormeau

This comment was marked as resolved.

@Rajek88

This comment was marked as resolved.

@gildas-lormeau
Copy link
Owner

@Rajek88 Do you know the software that was used to create the zip file maybe?

@gildas-lormeau gildas-lormeau changed the title On MacOS ventura, Safari 16.4, Its giving "TYPEERROR: EXTRA BYTES PAST THE END." Unexpected "Extra bytes past the end" error when decompressing data in Safari 16.4 May 5, 2023
@Rajek88
Copy link
Author

Rajek88 commented May 7, 2023

@Rajek88 Do you know the software that was used to create the zip file maybe?

Hi, sorry for late reply, Missed the notification.
Sure, I was using android system to create zip files,
You can find the documentation: https://developer.android.com/reference/java/util/zip/ZipEntry

@gildas-lormeau
Copy link
Owner

I'm closing the issue because I do not expect new info and because it's not a bug in zip.js. Please post any info that could help to fix it here: https://bugs.webkit.org/show_bug.cgi?id=256330.

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

No branches or pull requests

3 participants