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

[Bug]: Hue sensor causes unexpected exception #25

Open
palaga opened this issue Oct 26, 2024 · 0 comments
Open

[Bug]: Hue sensor causes unexpected exception #25

palaga opened this issue Oct 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@palaga
Copy link

palaga commented Oct 26, 2024

Node-Red-Contrib-Huemagic-Fork Version

4.2.8

Node JS Version

v22.8.0

NPM Version

10.8.2

Node-Red Version

v3.1.3

Operating System

Android (termux)

What happened?

I added a motionsensor node and triggered it by walking past the sensor. Node red crashed immediately with an uncaught exception. This exception happened in hue-bridge-config.json, line 257, due to an unknown property refence (the property refence being some "random" uuid).

How to reproduce?

For me, this happens whenever a motion sensor is triggered.

Expected behavior:

Would expect a motion event and no crash.

Additional comments?

No response

Relevant log output

26 Oct 10:22:14 - [red] Uncaught Exception:                                26 Oct 10:22:14 - [error] TypeError: Cannot read properties of undefined (reading 'b3d63fd4-9373-11ef-bf3a-936b83e6d503')                                 at /data/data/com.termux/files/home/.node-red/node_modules/node-red-contrib-huemagic-fork/huemagic/hue-bridge-config.js:257:67                        at scope.events.<computed>.onmessage (/data/data/com.termux/files/home/.node-red/node_modules/node-red-contrib-huemagic-fork/huemagic/utils/api.js:142:9)                                                                        at EventSource.emit (node:events:520:28)                                   at _emit (/data/data/com.termux/files/home/.node-red/node_modules/eventsource/lib/eventsource.js:287:17)                                              at parseEventStreamLine (/data/data/com.termux/files/home/.node-red/node_modules/eventsource/lib/eventsource.js:302:9)                                at IncomingMessage.<anonymous> (/data/data/com.termux/files/home/.node-red/node_modules/eventsource/lib/eventsource.js:259:11)                        at IncomingMessage.emit (node:events:520:28)                               at addChunk (node:internal/streams/readable:559:12)                        at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)     at Readable.push (node:internal/streams/readable:390:5)                    at HTTPParser.parserOnBody (node:_http_common:130:24)                      at TLSSocket.socketOnData (node:_http_client:546:22)                       at TLSSocket.emit (node:events:520:28)                                     at addChunk (node:internal/streams/readable:559:12)                        at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)     at Readable.push (node:internal/streams/readable:390:5)                    at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants