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

Locize-cli timeouts on sync #86

Open
vcarnogu opened this issue Jul 28, 2023 · 4 comments
Open

Locize-cli timeouts on sync #86

vcarnogu opened this issue Jul 28, 2023 · 4 comments
Assignees
Labels

Comments

@vcarnogu
Copy link

🐛 Bug Report

Timeout on locize sync command.

To Reproduce

Wa have 15 languages, 85.000 words total.
locize sync --path ./public/locales --project-id 298secret338 --api-key a98secret3 --reference-language-only false

I was able to synchronize it twice but most of this time I get an error like this:

FetchError: request to https://api.locize.app/2fc23692-22e1-4cf3-8425-60354bc718e8/latest/ru/generalDialog?ts=1690548066168 failed, reason: connect ETIMEDOUT 13.32.110.68:443
    at ClientRequest.<anonymous> (/Users/usrname/Documents/project/project-web/node_modules/locize-cli/node_modules/node-fetch/lib/index.js:1505:11)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:490:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) 

If will fails on various languages and namespaces (see URL above)

Expected behavior

Synchronisation should pass.

Your Environment

  • runtime version: Node 19.2.0
  • Locize CLI: >=locize-cli: ^7.14.6
  • os: Mac
@adrai adrai self-assigned this Jul 28, 2023
@adrai
Copy link
Collaborator

adrai commented Jul 28, 2023

Hi Vaclav,

We just tried to reproduce it several times in different networks with your translations, but we were not able to trigger a timeout.
Depending on your local network setup, the problem may be in proxy or firewall restrictions (by company).

Nevertheless, we've just released a new CLI version v7.14.7 that will retry the request in case of a ETIMEDOUT error.

I hope this helps.

@stale
Copy link

stale bot commented Aug 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1 similar comment
@stale
Copy link

stale bot commented Sep 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 16, 2023
@vcarnogu
Copy link
Author

Thanks @adrai. I will give it a try. In the meantime a figured out that when I limit languages with --language [lc] it doesn't time out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants