balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
452 stars 139 forks source link

`balena logs` timeout #1483

Open pdcastro opened 4 years ago

pdcastro commented 4 years ago
$ DEBUG=1 balena logs <uuid>
[debug] original argv0="node" argv=[/usr/local/bin/node,/usr/local/bin/balena,logs,f3f1b790b5d0cded4bdf06f4f389c637] length=4
FetchError: network timeout at: https://api.balena-cloud.com/device/v2/f3f1b790b5d0cded4bdf06f4f389c637/logs?
at Timeout._onTimeout (/usr/local/lib/node_modules/balena-cli/node_modules/node-fetch/index.js:126:13)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

This issue is intermittent and appears to be related to balenaCloud DB provisioning, but the actionable point regarding the CLI would probably be to improve the error message to indicate more clearly that the network timeout comes from attempting to contact the balenaCloud backend (API servers), and perhaps to automatically retry. Automated issue reporting could also be considered.

balena-ci commented 4 years ago

[pdcastro] This issue has attached support thread https://jel.ly.fish/#/support-thread~ff9ddf16-2322-4050-ac9a-841d24004420