seikan / homebridge-mi-camera

Xiaomi Mi camera plugin for Homebridge.
Other
38 stars 8 forks source link

UnhandledPromiseRejectionWarning #10

Open Scream4Life opened 5 years ago

Scream4Life commented 5 years ago

I get this error after implementing everything with my Mi Home Security Camera Basic 1080p

(node:18722) UnhandledPromiseRejectionWarning: Error: Could not connect to device, token might be wrong
    at enrichPromise.promise.then.then.catch.err (/usr/lib/node_modules/miio/lib/network.js:324:16)
    at <anonymous>:null:null

(node:18722) 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: 1)
(node:18722) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The config seems pretty straight forward with this

{
      "accessory": "MiCamera",
      "name": "Mi Camera",
      "ip": "192.168.xxx.xxx",
      "token": "32-alphanumeric-code"
    },

Any ideas?