jsiegenthaler / homebridge-eosstb

A homebridge plugin for the EOS set-top box as used by Sunrise, Telenet, Ziggo, Virgin Media and maybe more in various countries on the Horizon Go (HGO) platform
https://github.com/jsiegenthaler/homebridge-eosstb
32 stars 4 forks source link

A lot of warnings since update to version 1.1.7 #40

Closed mhary269 closed 3 years ago

mhary269 commented 3 years ago

Describe The Bug: After updating to the latest version 1.1.7 there are many error messages in the log. The error messages are updated every 5 minutes. To Reproduce:

Expected behavior:

Logs: 21.4.2021, 21:08:40 (node:1988) UnhandledPromiseRejectionWarning: TypeError: this.currentChannelId.includes is not a function 21.4.2021, 21:08:40 at stbDevice.updateDeviceState (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:2494:30) 21.4.2021, 21:08:40 at stbPlatform.mqttDeviceStateHandler (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1495:34) 21.4.2021, 21:08:40 at MqttClient. (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1440:12) 21.4.2021, 21:08:40 at MqttClient.emit (events.js:315:20) 21.4.2021, 21:08:40 at MqttClient._handlePublish (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:1277:12) 21.4.2021, 21:08:40 at MqttClient._handlePacket (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:410:12) 21.4.2021, 21:08:40 at work (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:321:12) 21.4.2021, 21:08:40 at Writable.writable._write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:335:5) 21.4.2021, 21:08:40 at doWrite (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:409:139) 21.4.2021, 21:08:40 at writeOrBuffer (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:398:5) 21.4.2021, 21:08:40 at Writable.write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:307:11) 21.4.2021, 21:08:40 at Duplex.ondata (internal/streams/readable.js:719:22) 21.4.2021, 21:08:40 at Duplex.emit (events.js:315:20) 21.4.2021, 21:08:40 at addChunk (internal/streams/readable.js:309:12) 21.4.2021, 21:08:40 at readableAddChunk (internal/streams/readable.js:284:9) 21.4.2021, 21:08:40 at Duplex.Readable.push (internal/streams/readable.js:223:10) 21.4.2021, 21:08:40 (node:1988) 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: 5) 21.4.2021, 21:08:40 (node:1988) UnhandledPromiseRejectionWarning: TypeError: this.currentChannelId.includes is not a function 21.4.2021, 21:08:40 at stbDevice.updateDeviceState (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:2494:30) 21.4.2021, 21:08:40 at stbPlatform.mqttDeviceStateHandler (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1495:34) 21.4.2021, 21:08:40 at MqttClient. (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1440:12) 21.4.2021, 21:08:40 at MqttClient.emit (events.js:315:20) 21.4.2021, 21:08:40 at MqttClient._handlePublish (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:1277:12) 21.4.2021, 21:08:40 at MqttClient._handlePacket (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:410:12) 21.4.2021, 21:08:40 at work (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:321:12) 21.4.2021, 21:08:40 at Writable.writable._write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:335:5) 21.4.2021, 21:08:40 at doWrite (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:409:139) 21.4.2021, 21:08:40 at writeOrBuffer (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:398:5) 21.4.2021, 21:08:40 at Writable.write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:307:11) 21.4.2021, 21:08:40 at Duplex.ondata (internal/streams/readable.js:719:22) 21.4.2021, 21:08:40 at Duplex.emit (events.js:315:20) 21.4.2021, 21:08:40 at addChunk (internal/streams/readable.js:309:12) 21.4.2021, 21:08:40 at readableAddChunk (internal/streams/readable.js:284:9) 21.4.2021, 21:08:40 at Duplex.Readable.push (internal/streams/readable.js:223:10) 21.4.2021, 21:08:40 (node:1988) 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: 6) 21.4.2021, 21:08:42 (node:1988) UnhandledPromiseRejectionWarning: TypeError: this.currentChannelId.includes is not a function 21.4.2021, 21:08:42 at stbDevice.updateDeviceState (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:2494:30) 21.4.2021, 21:08:42 at stbPlatform.mqttDeviceStateHandler (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1495:34) 21.4.2021, 21:08:42 at MqttClient. (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1440:12) 21.4.2021, 21:08:42 at MqttClient.emit (events.js:315:20) 21.4.2021, 21:08:42 at MqttClient._handlePublish (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:1277:12) 21.4.2021, 21:08:42 at MqttClient._handlePacket (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:410:12) 21.4.2021, 21:08:42 at work (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:321:12) 21.4.2021, 21:08:42 at Writable.writable._write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:335:5) 21.4.2021, 21:08:42 at doWrite (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:409:139) 21.4.2021, 21:08:42 at writeOrBuffer (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:398:5) 21.4.2021, 21:08:42 at Writable.write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:307:11) 21.4.2021, 21:08:42 at Duplex.ondata (internal/streams/readable.js:719:22) 21.4.2021, 21:08:42 at Duplex.emit (events.js:315:20) 21.4.2021, 21:08:42 at addChunk (internal/streams/readable.js:309:12) 21.4.2021, 21:08:42 at readableAddChunk (internal/streams/readable.js:284:9) 21.4.2021, 21:08:42 at Duplex.Readable.push (internal/streams/readable.js:223:10) 21.4.2021, 21:08:42 (node:1988) 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: 7) 21.4.2021, 21:08:42 (node:1988) UnhandledPromiseRejectionWarning: TypeError: this.currentChannelId.includes is not a function 21.4.2021, 21:08:42 at stbDevice.updateDeviceState (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:2494:30) 21.4.2021, 21:08:42 at stbPlatform.mqttDeviceStateHandler (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1495:34) 21.4.2021, 21:08:42 at MqttClient. (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/index.js:1440:12) 21.4.2021, 21:08:42 at MqttClient.emit (events.js:315:20) 21.4.2021, 21:08:42 at MqttClient._handlePublish (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:1277:12) 21.4.2021, 21:08:42 at MqttClient._handlePacket (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:410:12) 21.4.2021, 21:08:42 at work (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:321:12) 21.4.2021, 21:08:42 at Writable.writable._write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/mqtt/lib/client.js:335:5) 21.4.2021, 21:08:42 at doWrite (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:409:139) 21.4.2021, 21:08:42 at writeOrBuffer (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:398:5) 21.4.2021, 21:08:42 at Writable.write (/home/hoobs/.hoobs/node_modules/homebridge-eosstb/node_modules/readable-stream/lib/_stream_writable.js:307:11) 21.4.2021, 21:08:42 at Duplex.ondata (internal/streams/readable.js:719:22) 21.4.2021, 21:08:42 at Duplex.emit (events.js:315:20) 21.4.2021, 21:08:42 at addChunk (internal/streams/readable.js:309:12) 21.4.2021, 21:08:42 at readableAddChunk (internal/streams/readable.js:284:9) 21.4.2021, 21:08:42 at Duplex.Readable.push (internal/streams/readable.js:223:10) 21.4.2021, 21:08:42 (node:1988) 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: 8)``` Show the Homebridge logs here, remove any sensitive information.


**Plugin Config:**

```json
Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

jsiegenthaler commented 3 years ago

Wow. that's really weird. Works for me perfectly. I'll think about it...

jsiegenthaler commented 3 years ago

@mhary269 Please try v1.1.8-beta.1 and report back

mhary269 commented 3 years ago

Installed the beta 1.1.8 at 7:00am this morning. System is still running without any problems. Thank you :-)

jsiegenthaler commented 3 years ago

Thanks @mhary269 Fix published in v1.1.8