ioBroker / ioBroker.iot

Connection for Alexa, IFTTT, Google Home and co
MIT License
72 stars 25 forks source link

Type error(s) #764

Closed sammie76-2 closed 4 months ago

sammie76-2 commented 4 months ago

Describe the bug
I get error messages in the ioBroker protocol.

Cannot convert undefined or null to object

_TypeError: Cannot convert undefined or null to object at Function.keys () at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29) at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22) at DeviceClient.emit (node:events:517:28) at DeviceClient.emit (node:domain:489:12) at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12) at MqttClient.emit (node:events:529:35) at MqttClient.emit (node:domain:489:12) at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/nodemodules/mqtt/lib/client.js:360:10) at TLSSocket.emit (node:events:529:35)

uncaught exception: Cannot convert undefined or null to object

Sometimes there is also an warning:

_Terminated (UNCAUGHTEXCEPTION): Without reason

The adapter restarts very often every day.

I am using version 3.2.2 of the iot adapter.

sammie76-2 commented 4 months ago

Updating nodejs to 20.x solved the problem.