-
Notifications
You must be signed in to change notification settings - Fork 513
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
"TypeError: Cannot close a CLOSED writable stream" thrown after reading data from zip entry #493
Comments
Thank you for the detailed report, I was able to reproduce and fix the issue. The fix is available in the version |
Thank you for the quick reply. Have you updated https://gildas-lormeau.github.io/zip-manager/ to use |
it should indeed be fixed in the demo. Did you refresh the page to make sure the service worker is updated? On my end, I do not see any uncaught exception anymore when trying to reproduce the issue. |
Things look good today! You're probably right... something could easily have been cached out of sight somewhere even with no-cache on in the dev tools. Thank you. |
Actually, the service worker is always updated after a refresh. This is how I decided to implement transparent updates in the demo. |
Maybe there was an HTTP proxy cache somewhere still handing me the old zip-manager? 🤷 I'm less sure as to why my local build had the issue yesterday and worked today though.... Hopefully there's nothing flakey lurking in the shadows. |
FYI, I removed the |
If there is a better place to report this issue, let me know.
Witnessed behavior
Often, when I read the content of files from a zip archive, zip.js throws an uncaught "TypeError: Cannot close a CLOSED writable stream" exception. I first noticed this with "pause on uncaught exceptions" set in the Chrome debugger.
This is also reproducible on https://gildas-lormeau.github.io/zip-manager/ when I load a zip archive and try to extract a file from it.
Browser: Chrome version 122.0.6261.94 on MacOS
Attached is an archive for which I have seen this behavior in https://gildas-lormeau.github.io/zip-manager/ . I created this archive with
zip -r archive.zip archive/
on MacOS. Seezip --version
if relevant.Reproduction steps
await a.getWriter().close()
callThe text was updated successfully, but these errors were encountered: