sci-bots / base-node-rpc

Base classes for Arduino RPC node/device
0 stars 2 forks source link

bug(async): `Future/Task exception was never retrieved` if serial port does not respond to `ID_REQUEST` #18

Closed cfobel closed 6 years ago

cfobel commented 6 years ago

Problem

If a serial port does not respond to an ID_REQUEST request, the following message is logged at the logging.ERROR level:

[ERROR:trollius]: Future/Task exception was never retrieved

WindowsError: [Error 6] The handle is invalid

Unfortunately, in MicroDrop, error logging messages are automatically displayed as pop-up dialog messages. This means that on systems where serial ports other than the one exposed by the DropBot are available, an error message will be displayed in MicroDrop whenever attempting to connect to the DropBot (since the other serial ports will not respond to the ID_REQUEST request).