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

Particle commands hang without internet connection when update is attempted #494

Open
zacnelson opened this issue Jun 11, 2019 · 1 comment

Comments

@zacnelson
Copy link

When executing particle commands, if an update is attempted, then the command hangs for 2 minutes. I've encountered this issue now on WSL and on a Raspberry Pi so it might be contained to Linux, but I'm not sure. I was unable to recreate this bug in Windows Command Prompt.

To recreate the issue, I disconnect my laptop or Pi from WiFi, then force updates with: particle --force-update-check. I can see that the initial update check times out after 3 seconds per this line in settings.js but I'm not sure why the rest hangs for the remaining 2 minutes. It'll print out the help command list and then hang.

@zacnelson
Copy link
Author

Update: In Windows Command Prompt, particle --force-update-check without wifi takes a total of 13 seconds to complete, 3 of which are the initial cli update timeout. The remaining 10 seconds are just waiting after the help manual is printed to the console.

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

1 participant