ioBroker.yahka icon indicating copy to clipboard operation
ioBroker.yahka copied to clipboard

Uncaught Exception

Open Docjones opened this issue 2 years ago • 3 comments

While messing with my car integration into iobroker, i suddenly got this exception in the logs:

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined at Hash.update (internal/crypto/hash.js:84:11) at Accessory.publish (/opt/iobroker/node_modules/hap-nodejs/src/lib/Accessory.ts:1137:10) at /opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.homekit-bridge.ts:50:35 at /opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.homekit-bridge.ts:73:41 at Array.forEach (<anonymous>) at THomeKitBridge../yahka.homekit-bridge.ts.THomeKitBridge.init (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.homekit-bridge.ts:73:26) at new THomeKitBridge (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.homekit-bridge.ts:20:14) at TIOBrokerAdapter../yahka.ioBroker-adapter.ts.TIOBrokerAdapter.createHomeKitBridges (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:82:27) at TIOBrokerAdapter../yahka.ioBroker-adapter.ts.TIOBrokerAdapter.adapterReady (/opt/iobroker/node_modules/iobroker.yahka/webpack:/yahka.ioBroker-adapter.ts:56:14) at Adapter.emit (events.js:375:28)

Docjones avatar Mar 18 '22 19:03 Docjones

I reverted my last changes, but the exception persists - any help on how to overcome would be appreciated

Docjones avatar Mar 18 '22 19:03 Docjones

Seems to happen as soon as i set multiple devices to be "Publish as own device".

if i deactivate the above setting, the exception vanished from the log

Docjones avatar Mar 18 '22 22:03 Docjones

I guess the fields which are necessary for publishing the device are empty (like Username)

jensweigele avatar Mar 21 '22 07:03 jensweigele