thejoshwolfe / yauzl

yet another unzip library for node
MIT License
678 stars 77 forks source link

end of central directory record signature not found #143

Closed arcticmatt closed 3 months ago

arcticmatt commented 1 year ago

I'm trying to unzip this file:

Simple Deck.zip

However, I get this error:

server:dev: server | Error: end of central directory record signature not found
server:dev: server |     at /usr/src/app/node_modules/.pnpm/yauzl@2.10.0/node_modules/yauzl/index.js:187:14
server:dev: server |     at Immediate.<anonymous> (/usr/src/app/node_modules/.pnpm/yauzl@2.10.0/node_modules/yauzl/index.js:624:38)
server:dev: server |     at processImmediate (node:internal/timers:466:21)
server:dev: server |     at process.topLevelDomainCallback (node:domain:161:15)
server:dev: server |     at process.callbackTrampoline (node:internal/async_hooks:128:24)

unzip works fine with this file (tested on Mac and Linux)

Archive:  Simple Deck.zip
    testing: collection.anki2         OK
    testing: media                    OK
No errors detected in compressed data of Simple Deck.zip.

This zip (amongst others) also gives me the issue Media Test New 2.zip

arcticmatt commented 1 year ago

This ended up being a bug on my end—I was not properly creating the zip file!

overlookmotel commented 1 year ago

Maybe close the issue since you've solved it?