homebridge-plugin-eufy-security
homebridge-plugin-eufy-security copied to clipboard
Hard Crash - TypeError [ERR_INVALID_ARG_TYPE]
Describe The Bug:
To Reproduce:
- Install homebridge-plugin-eufy-security v0.1.6 from Homebridge UI.
- Restart server.
- Homebridge hard crashes and restarts from the error.
Expected behavior:
Startup occurs without error and Homebridge continues to run.
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 Object.generate (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/uuid.ts:9:11)
at PushClient.callback (/homebridge/node_modules/homebridge-plugin-eufy-security/src/platform.ts:128:46)
at PushClient.handleParsedMessage (/homebridge/node_modules/homebridge-plugin-eufy-security/node_modules/eufy-node-client/build/push/push-client.service.js:206:26)
at PushClientParser.<anonymous> (/homebridge/node_modules/homebridge-plugin-eufy-security/node_modules/eufy-node-client/build/push/push-client.service.js:103:63)
at PushClientParser.emit (events.js:315:20)
at PushClientParser.onGotMessageBytes (/homebridge/node_modules/homebridge-plugin-eufy-security/node_modules/eufy-node-client/build/push/push-client-parser.service.js:150:14)
at PushClientParser.handleFullMessage (/homebridge/node_modules/homebridge-plugin-eufy-security/node_modules/eufy-node-client/build/push/push-client-parser.service.js:79:22)
at PushClientParser.waitForData (/homebridge/node_modules/homebridge-plugin-eufy-security/node_modules/eufy-node-client/build/push/push-client-parser.service.js:64:18)
at PushClientParser.onGotMessageSize (/homebridge/node_modules/homebridge-plugin-eufy-security/node_modules/eufy-node-client/build/push/push-client-parser.service.js:124:18)
[12/25/20
Plugin Config:
{
"username": "-login-",
"password": "-password-",
"enablePush": true,
"platform": "EufySecurityHomebridgePlugin"
}
Screenshots:
Environment:
- Plugin Version: v0.1.6
- Homebridge Version: v1.2.4
- Node.js Version: v14.15.3
- NPM Version: v6.14.9
- Operating System: Docker
I have the exact same issue on a build just installed yesterday, experiencing it under HOOBS 3.3.2.
- Plugin v0.1.6
- HOOBS 3.3.2 (which is Homebridge 1.1.7 behind the scenes)
- Node.js 14.15.1
- NPM 6.14.9
Same here. Just installed it the first time. Any workaround?
Same issue here
Try the instructions in this post
https://github.com/birkir/homebridge-plugin-eufy-security/issues/45#issuecomment-843199774
You need to update eufy-node-client in the node_modules directory, which lies within the homebridge-plugin-eufy-security plugin. Note that note only does homebridge have a node_modules directory, but each plugin does, too.