Jszip: Can't find end of central directory : is this a zip file ?

Created on 4 Nov 2019  Â·  4Comments  Â·  Source: Stuk/jszip

Got this error using SZip v3.2.1 when using jszip.min.js

Can't find end of central directory : is this a zip file ? If it is, see

https://stuk.github.io/jszip/documentation/howto/read_zip.html

If I use jszip.js (not minified version) it works!

I then minified jszip.js using Dean Edwards packer: http://dean.edwards.name/packer/
and the resulting file still works, slightly larger at 110KB than jzip.min.js - 94KB

Not a major issue now I've found a solution but it needs fixing judging by the Google results for this error.

Most helpful comment

What's the solution then?

All 4 comments

What's the solution then?

What's the solution then?

It's happening in 3.6.0 too,
I'm trying to unzip a file zipped by python pandas. filename.csz.zip

It's throwing this error.
Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
at ZipEntries.readEndOfCentral (zipEntries.js:168)
at ZipEntries.load (zipEntries.js:256)
at load.js:49

Is there a solution for this?

Is there a solution? please, thank you.

Was this page helpful?
0 / 5 - 0 ratings