dkerr64/homebridge-yolink

UnhandledPromiseRejectionWarning: TypeError during network usability. See log...

dkerr64 opened this issue · 0 comments

Captured log...

[8/17/2022, 5:52:39 AM] [YoLink] error in getDeviceState may be recoverable: FetchError: request to https://api.yosmart.com/open/yolink/v2/api failed, reason: getaddrinfo EAI_AGAIN api.yosmart.com
    at ClientRequest.<anonymous> (/usr/lib/node_modules/homebridge-yolink/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (events.js:400:28)
    at TLSSocket.socketErrorListener (_http_client.js:475:9)
    at TLSSocket.emit (events.js:400:28)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
[8/17/2022, 5:52:39 AM] [YoLink] Device offline or other error for Outdoor Thermo/Hydro (d88b4c010003ccd8)
(node:20359) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'reportAt' of undefined
    at YoLinkPlatformAccessory.handleThermoGet (/usr/lib/node_modules/homebridge-yolink/src/thermoHydroDevice.ts:147:44)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at YoLinkPlatformAccessory.refreshDataTimer (/usr/lib/node_modules/homebridge-yolink/src/platformAccessory.ts:140:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:20359) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20359) [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.
[8/17/2022, 5:52:39 AM] [YoLink] YoLinkAPI.getDeviceState for 'Outdoor Thermo/Hydro' (d88b4c010003ccd8)