lokalise / lokalise-cli

Lokalise CLI v1 Dockerhub repo.
2 stars 1 forks source link

"Client.Timeout exceeded while awaiting headers" already after a couple of seconds #2

Open danurna opened 6 years ago

danurna commented 6 years ago

I am executing the command lokalise export $PROJECT_ID --type strings --dest $DEST "$@" --use_original 1 --export_empty base and get the following output:

Post https://api.lokalise.co/api/project/export: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
ERROR: API returned error (see above)

On different machines it works without any issues. Can I set the timeout somewhere?

nickustinov commented 6 years ago

Seems there was some networking issue at our data center. The issue is not reproducable anymore.

danurna commented 6 years ago

Thanks for having a look at this issue! It still happens but I can give you some more information: I tried the provided docker image and I experience the same behaviour. If I filter export by tags it works. This gives me the feeling that exporting all strings for all different languages might just land us above the 10s threshold for downloading all of the things. Any chance we could make the timeout configurable or increase it to 30 seconds or so?

nickustinov commented 6 years ago

Is this a Docker timeout or Go timeout? Maybe you know the shortcut – which one to increase?

czars commented 6 years ago

It always reproduced on my computer and my colleague's. It seems like GO timeout. But we don't know how to increase it.

danurna commented 6 years ago

I built the Go version myself and set the timeout to 30 seconds. It doesn't solve the issue as it looks like the error message is returned by the lokalise API. (And it actually says that: ERROR: API returned error)