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

Endpoint request timed out #15

Closed
marianozicavo opened this issue Oct 26, 2018 · 3 comments
Closed

Endpoint request timed out #15

marianozicavo opened this issue Oct 26, 2018 · 3 comments

Comments

@marianozicavo
Copy link

I'm running locize sync --api-key myApiKeyHere --project-id myProjectIdHere and getting the following error.
My locize project is brand new and has a single version called latest. It has two languages: es(reference) and en.

I'm running it from a directory that has 2 directories inside: es and end. Each directory has a file for each namespace called, for example Login.json.

...
adding 1 keys in es/CreateModal...
adding 14 keys in es/CreateOfferModal...
adding 3 keys in es/CreatedProductsModal...
adding 2 keys in es/CsvDropzone...
Error: Endpoint request timed out
    at Request.request [as _callback] (/usr/local/lib/node_modules/locize-cli/sync.js:374:22)
    at Request.self.callback (/usr/local/lib/node_modules/locize-cli/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/locize-cli/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/locize-cli/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
@adrai
Copy link
Collaborator

adrai commented Oct 26, 2018

strange...
Just added a small retry handling in v4.3.3 when a potential gateway timeout occurs.
Can you retry and see if this happens again?
Sorry for the inconvenience.

@marianozicavo
Copy link
Author

I got

Woloxs-Mac-mini-8:locales mzicavo$ locize sync --api-key myApiHere --project-id myProjectIdHere --format json
Error: getaddrinfo ENOTFOUND api.locize.io api.locize.io:443
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

Then I tried again right after that and it went through ok.

You can close this issue if you see it fit.

Thanks for the quick responses!

@adrai
Copy link
Collaborator

adrai commented Oct 26, 2018

Ok, will close it. But please inform us as soon as possible if you get other problems.
Btw: the last error seems more a “local” network problem.
Thanks for your patience.
And sorry again for the inconvenience.

@adrai adrai closed this as completed Oct 26, 2018
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