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

end of central directory record signature not found #76

Open
vinnyglennon opened this issue Apr 2, 2024 · 1 comment
Open

end of central directory record signature not found #76

vinnyglennon opened this issue Apr 2, 2024 · 1 comment

Comments

@vinnyglennon
Copy link

Hosting Tolgee on https://redacted_personal_url
Project id: 2
installed via: npm i --global @tolgee/cli

tolgee --api-url https://redacted_personal_url --project-id 2 --api-key tgpak_redacted_key pull config/locales/

gives

🟡 The specified path /Users/redacted/src/redacted/config/locales already exists.
Do you want to overwrite data? BE CAREFUL, ALL THE CONTENTS OF THE DESTINATION FOLDER WILL BE DESTROYED. [y/N] y
⚪ [HTTP] Requesting: POST https://redacted_personal_url/v2/projects/2/export
⚪ [HTTP] POST https://redacted_personal_url/v2/projects/2/export -> 302 Found
🐭✅ Fetching strings from Tolgee...
🐭🔴 Extracting strings...
🔴 An unexpected error occurred while running the command.
🔴 Please report this to our issue tracker: https://github.com/tolgee/tolgee-cli/issues
Error: end of central directory record signature not found
at /opt/homebrew/lib/node_modules/@tolgee/cli/node_modules/yauzl/index.js:187:14
at Immediate. (/opt/homebrew/lib/node_modules/@tolgee/cli/node_modules/yauzl/index.js:624:38)
at process.processImmediate (node:internal/timers:478:21)

@cyyynthia
Copy link
Collaborator

This 302 redirect is probably what's causing the issue. The CLI doesn't expect redirects which means it's trying to decompress the empty response it got with the redirect.

Is the redirect caused by your configuration (reverse proxy, ...) or is it from Tolgee itself?

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