Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot convert undefined or null to object #47

Closed
NorthernMan54 opened this issue Jan 7, 2024 · 6 comments
Closed

TypeError: Cannot convert undefined or null to object #47

NorthernMan54 opened this issue Jan 7, 2024 · 6 comments

Comments

@NorthernMan54
Copy link

With version 1.2.0 we are getting this issue with Homebridge-config-ui-x

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)

We resolved by dropping back to version 1.1.1

homebridge/homebridge-config-ui-x#1973
homebridge/homebridge-syno-spk#145

@mdidon
Copy link
Member

mdidon commented Jan 8, 2024

@NorthernMan54 Thanks for the heads up. I'll have at this.
Can you provide the initialisation code (or location of) for bonjour-service to test against.

mdidon added a commit that referenced this issue Jan 8, 2024
Handle event where txt a or b can be undefined
#47
@mdidon
Copy link
Member

mdidon commented Jan 8, 2024

@NorthernMan54 I've been able to replicate the issue and have released a patch under v1.2.1.

@NorthernMan54
Copy link
Author

Tks for quickly fixing this, much appreciated

@donavanbecker
Copy link

We have pushed this to a beta so once we get confirmation that this resolve the issue. We can let you know.

@donavanbecker
Copy link

Just got confirmation from a few testers and all is good. Thanks for the quick fix!

@mdidon
Copy link
Member

mdidon commented Jan 8, 2024

@donavanbecker @NorthernMan54 Good to hear, I will mark as closed.
Many thanks

@mdidon mdidon closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants