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

App crahes on undefined device #12

Open
kaohlive opened this issue Jul 14, 2024 · 0 comments
Open

App crahes on undefined device #12

kaohlive opened this issue Jul 14, 2024 · 0 comments

Comments

@kaohlive
Copy link

https://github.com/Joery-M/Govee-LAN-Control/blame/d70fa444f0da8081da8ba451a6807c598f06c81d/src/index.ts#L308
This line is giving me crashes ones in a while.

TypeError: Cannot read properties of undefined (reading 'state') at Socket.receiveMessage (/app/node_modules/govee-lan-control/dist/index.js:531:57) at Socket.emit (node:events:517:28) at UDP.onMessage [as onmessage] (node:dgram:942:8)

Since its the event emitter part of the code I also dont think I can catch these errors in my own app that is using your module.

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

1 participant