Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

UnhandledPromiseRejectionWarning Foscam C2 #67

Open
domome opened this issue Aug 20, 2019 · 0 comments
Open

UnhandledPromiseRejectionWarning Foscam C2 #67

domome opened this issue Aug 20, 2019 · 0 comments

Comments

@domome
Copy link

domome commented Aug 20, 2019

Hello,
When my HB on a RBP boots after turn off I have this error:

[8/20/2019, 3:07:21 AM] [Config] Console v4.6.0 is listening on :: port 8099
(node:399) UnhandledPromiseRejectionWarning: RequestError: Error: connect EHOSTUNREACH 192.168.xxx.xxx:88
at new RequestError (/homebridge/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback [as _callback] (/homebridge/node_modules/request-promise/lib/rp.js:60:32)
at self.callback (/homebridge/node_modules/request/request.js:185:22)
at Request.emit (events.js:189:13)
at Request.onRequestError (/homebridge/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:189:13)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:399) 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:399) [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 plugin was working fine till now, and if now I restart the HB from the Config UI X it work's without problems.

[8/20/2019, 9:10:13 AM] [Foscam] Initializing platform accessory 'Foscam C2'...
[8/20/2019, 9:10:13 AM] Foscam C2 is running on port 35851.

The error iIt's only when I turn off the HB

Thanks for your support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant