homebridge-config-ui-x: Homebridge crashing after UI update to 4.55.0 with node.js 20.10.0
Describe The Bug
As soon as Homebridge-config-ui-x is updated to 4.55.0 with node 20.10.0, homebridge keeps restarting after showing the message below. UI V4.55.0 seems to work fine with node 18.19.0 and UI v4.54.1 works fine with node 20.10.0.
I tried rebuilding several times, re-installing homebridge, changing the update order (node-first or UI-first) without any luck.
Logs
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at equalTxt (/opt/homebridge/lib/node_modules/homebridge-config-ui-x/node_modules/bonjour-service/src/lib/utils/equal-txt.ts:2:24)
at Browser.updateService (/opt/homebridge/lib/node_modules/homebridge-config-ui-x/node_modules/bonjour-service/src/lib/browser.ts:145:21)
at /opt/homebridge/lib/node_modules/homebridge-config-ui-x/node_modules/bonjour-service/src/lib/browser.ts:108:30
at Array.forEach (<anonymous>)
at /opt/homebridge/lib/node_modules/homebridge-config-ui-x/node_modules/bonjour-service/src/lib/browser.ts:106:25
at Array.forEach (<anonymous>)
at EventEmitter.onresponse (/opt/homebridge/lib/node_modules/homebridge-config-ui-x/node_modules/bonjour-service/src/lib/browser.ts:98:34)
at EventEmitter.emit (node:events:514:28)
at Socket.<anonymous> (/opt/homebridge/lib/node_modules/homebridge-config-ui-x/node_modules/multicast-dns/index.js:49:43)
at Socket.emit (node:events:514:28)
at UDP.onMessage (node:dgram:941:8)
Config
No response
Homebridge UI Version
4.55.0
Homebridge Version
1.7.0
Node.js Version
20.10.0
Operating System
Raspberry Pi OS / Raspbian
Environment Info
- Using Docker?
- Using Hyper-V?
- Using hb-service?
Raspberry Pi Model
Raspberry Pi 4 B
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 2
- Comments: 26 (11 by maintainers)
In my case the UI stayed up long enough to change the setting and manually restart.
@DaphneINOPIA you can update via the command line if this is something you have ever done before?
Yes, re-enabled it after upgrading.
4.55.1-beta.2 seems to stop the endless restart cycle for me.
Confirm that with insecure mode off everything works fine
Thanks. For now please keep insecure mode off, until we can we can get the dependency to resolve the issue.
Same behaviour: Insecure mode turned off fixed the restart and homekit is stable. Insecure mode on introduces the UI restarts and homekit keeps polling homebridge devices.
Thanks! If we could get one more to test to verify.
Looks like this might be from an update of a dependency.
Yes it works with insecure mode off , the loop stops, but once insecure mode is enabled, the loop is back.