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

error getting port list from serial-discovery: read |0: The handle is invalid #510

Open
kittaakos opened this issue Dec 10, 2019 · 2 comments
Open

Comments

@kittaakos
Copy link
Member

@kittaakos kittaakos commented Dec 10, 2019

Bug Report

This happened on Windows with the Pro IDE. This is all I can see in the logs:

root ERROR Uncaught Exception:  Error: 2 UNKNOWN: error getting port list from serial-discovery: read |0: The handle is invalid.
root ERROR Error: 2 UNKNOWN: error getting port list from serial-discovery: read |0: The handle is invalid.
    at Object.callErrorFromStatus (c:\Users\kittaakos\Desktop\Arduino Pro IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call.js:30:26)
    at Http2CallStream.call.on (c:\Users\kittaakos\Desktop\Arduino Pro IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client.js:96:33)
    at Http2CallStream.emit (events.js:187:15)
    at process.nextTick (c:\Users\kittaakos\Desktop\Arduino Pro IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call-stream.js:79:22)
    at process._tickCallback (internal/process/next_tick.js:61:11)

It comes from the CLI when listing the available ports, but I do not know how to consistently reproduce the defect:

return nil, errors.Wrap(err, "error getting port list from serial-discovery")

Current behavior

Expected behavior

Environment

  • CLI version (output of arduino-cli version): version: 0.6.0 commit: 2049a7a
  • OS and platform: Windows 10 (running in VMWare Fusion 11.5.1 (15018442) on macOS)

Additional context

@kittaakos
Copy link
Member Author

@kittaakos kittaakos commented Dec 10, 2019

Note: I have been using this CLI version for the last week or so on macOS, and haven't hit this error.

@kittaakos
Copy link
Member Author

@kittaakos kittaakos commented Dec 10, 2019

Got another kind of error on Windows, I do not know if it is related to the original one:

root ERROR Uncaught Exception:  Error: 2 UNKNOWN: error getting port list from serial-discovery: decoding LIST command:
timeout
root ERROR Error: 2 UNKNOWN: error getting port list from serial-discovery: decoding LIST command: timeout
    at Object.callErrorFromStatus (C:\Users\kittaakos\dev\arduino-editor\node_modules\@grpc\grpc-js\build\src\call.js:30
:26)
    at Http2CallStream.call.on (C:\Users\kittaakos\dev\arduino-editor\node_modules\@grpc\grpc-js\build\src\client.js:96:
33)
    at Http2CallStream.emit (events.js:203:15)
    at process.nextTick (C:\Users\kittaakos\dev\arduino-editor\node_modules\@grpc\grpc-js\build\src\call-stream.js:79:22
)
    at process._tickCallback (internal/process/next_tick.js:61:11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.