homebridge-xiaomi-mi-robot-vacuum icon indicating copy to clipboard operation
homebridge-xiaomi-mi-robot-vacuum copied to clipboard

UnhandledPromiseRejectionWarning

Open bogaertterry opened this issue 5 years ago • 2 comments

Hello everyone, sorry about my English...

I'm new here, everything work well, the vacuum is detected and work but I got this message in my terminal every time I start the vacuum

((node:587) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Could not complete call to device (node:587) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with anon-zero exit code. (node:587) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Could not complete call to device (node:587) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: Could not complete call to device)

Could you help me ?

Thanks and have a good day,

Terry

bogaertterry avatar Sep 18 '18 21:09 bogaertterry

I also have this problem. Everything works, but I get this in the console.

J7mbo avatar Oct 07 '18 17:10 J7mbo

Nov 13 18:39:42 rpi3 homebridge[686]: (node:686) UnhandledPromiseRejectionWarning: Error: Could not complete call to device
Nov 13 18:39:42 rpi3 homebridge[686]:     at checkResult (/usr/lib/node_modules/miio/lib/devices/vacuum.js:13:9)
Nov 13 18:39:42 rpi3 homebridge[686]:     at <anonymous>
Nov 13 18:39:42 rpi3 homebridge[686]: (node:686) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 11)

I also get this, and sometimes I turn on the "Fan" and the command does not propagate until I turn it off and on again.

ageorgios avatar Nov 13 '18 18:11 ageorgios