eu-evops / homebridge-hikvision

28 stars 21 forks source link

Crash after update node.js to version 18.16.0 #44

Open jamesngob opened 1 year ago

jamesngob commented 1 year ago

Hello there, All has been working fine since couple of years... until the Homebridge system request for Node upgrade. After upgrading the Node.js to version 18.16.0 using sudo hb-service update-node, the Homebridge crashes and looping... The cause was

"TypeError: Cannot read properties of undefined (reading 'status') at AxiosDigest.getWwwAuth (/usr/lib/node_modules/@evops/homebridge-hikvision/node_modules/axios-digest/index.ts:69:13) at processTicksAndRejections (node:internal/process/task_queues:95:5)"

---> So I decided to create a new Ubuntu server version 22.04.2, 64 bit, install fresh Homebridge using the official page, then install your plugin via Plugin page of the homebridge. The same error happens, meaning it is now unusable under even new build, fresh install...

Any idea how to fix this? Thank you

Screenshot 2023-05-20 193204

oliver-kriska commented 5 months ago

Do you use 443 port or port 80? I had some issue and when I changed port to 80 it works