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

Invalid or unsupported zip format #63

Closed
esseswann opened this issue Sep 23, 2021 · 6 comments
Closed

Invalid or unsupported zip format #63

esseswann opened this issue Sep 23, 2021 · 6 comments

Comments

@esseswann
Copy link

esseswann commented Sep 23, 2021

There is an error happening with parsing today's fares which seems to be related to cthackers/adm-zip#268

Extracting /tmp/fares.zip to /tmp/dtd/fares/
Error: Invalid or unsupported zip format. No END header found
    at readMainHeader (/usr/local/lib/node_modules/dtd2mysql/node_modules/adm-zip/zipFile.js:107:10)
    at new module.exports (/usr/local/lib/node_modules/dtd2mysql/node_modules/adm-zip/zipFile.js:19:3)
    at new module.exports (/usr/local/lib/node_modules/dtd2mysql/node_modules/adm-zip/adm-zip.js:20:11)
    at ImportFeedCommand.doImport (/usr/local/lib/node_modules/dtd2mysql/dist/src/cli/ImportFeedCommand.js:52:9)
    at ImportFeedCommand.run (/usr/local/lib/node_modules/dtd2mysql/dist/src/cli/ImportFeedCommand.js:39:24)
    at container.getCommand.then.c (/usr/local/lib/node_modules/dtd2mysql/dist/src/index.js:7:18)
    at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:52:5)
    at Function.Module.runMain (internal/modules/cjs/loader.js:880:11)
    at internal/main/run_main_module.js:21:11

Version 6.4.2

@linusnorton
Copy link
Collaborator

Which fares file are you using? Daily, or weekly? And is it the TTIS version or DTD?

@esseswann
Copy link
Author

@esseswann
Copy link
Author

Here are the files in case NRE updated them on their side

@linusnorton
Copy link
Collaborator

I can't open the zip either. Might have to wait until the next one is released to see if they've fixed it

@esseswann
Copy link
Author

We were able to repair the archive using WinRar 6.02. I wonder if any JS package supports such functionality

@esseswann
Copy link
Author

Seems to be fixed on the NRE side

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

2 participants