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

Handle: NetworkError: Failed to execute 'open' on 'SerialPort': Failed to open serial port while rooting #388

Open
j005u opened this issue Jun 20, 2023 · 0 comments

Comments

@j005u
Copy link
Contributor

j005u commented Jun 20, 2023

We don't currently handle the "NetworkError: Failed to execute 'open' on 'SerialPort': Failed to open serial port while rooting" exception while rooting.

This happens when something else is keeping the COM port busy on Windows such as Cura, Prusa Slicer or DJI Assistant.

We should catch the exception and tell the user: "Unable to open serial port. This is usually caused by some other application such as DJI Assistant, Cura or Prusa Slicer keeping it busy. Please close any such applications and try again."

It's also possible that we handle it, but only after 10 retries. I think this error is usually unlikely to go away and in this specific case we can skip retrying?

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