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

Hue Magic crash Node-RED - Cannot read properties of undefined (reading 'status') #388

Open
CyrielRct opened this issue Jul 28, 2022 · 9 comments
Labels

Comments

@CyrielRct
Copy link

Describe the bug
Hue Magic crash Node-RED

27 Jul 21:37:42 - [red] Uncaught Exception:
27 Jul 21:37:42 - [error] TypeError: Cannot read properties of undefined (reading 'status')
    at /config/node-red/node_modules/node-red-contrib-huemagic/huemagic/utils/api.js:102:37
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
[21:37:42] WARNING: Node-RED crashed, halting add-on

Please complete the following information:

  • Node-RED version: 13.2.0
  • Running with Home Assistant
@CyrielRct
Copy link
Author

Problem fixed by adding this fix : 1af6c29

@czech12
Copy link

czech12 commented Aug 18, 2022

Hi all,

I was receiving an error very similar to this. It turned out to be a network connectivity issue (I was over my PoE budget and switches were randomly rebooting) between my Home Assistant server (which runs the NodeRed Add-On, which uses HueMagic) and my hue bridge. The problem though is that when HueMagic couldn't reach my hue bridge, it crashed NodeRed.

This seems like a serious dependency to me. I don't like my hue bridge being a single point of failure for all of my NodeRed automations.

Does anyone else experience the same issue? Is it possibly something with my installation? I tried removing all unused packages in NodeRed, but the issue didn't resolve itself until my hue bridge was able to have consistent reliable network connectivity.

Thanks.

@windkh
Copy link

windkh commented Sep 2, 2022

same problem here. Will there be a new version containing this fix soon?

@czech12
Copy link

czech12 commented Sep 2, 2022

Hi all,

I was receiving an error very similar to this. It turned out to be a network connectivity issue (I was over my PoE budget and switches were randomly rebooting) between my Home Assistant server (which runs the NodeRed Add-On, which uses HueMagic) and my hue bridge. The problem though is that when HueMagic couldn't reach my hue bridge, it crashed NodeRed.

This seems like a serious dependency to me. I don't like my hue bridge being a single point of failure for all of my NodeRed automations.

Does anyone else experience the same issue? Is it possibly something with my installation? I tried removing all unused packages in NodeRed, but the issue didn't resolve itself until my hue bridge was able to have consistent reliable network connectivity.

Thanks.

I decided HueMagic was overkill for my specific needs and the Home Assistant integration already had all the information I needed about Hue. For the Hue switches and buttons, I use the Events All node and look for all hue_event messages. It works flawlessly and doesn't break anything is hue goes offline. For Hue scenes, I use the Call Service node to have HA turn the scene on.

Cool project, but HueMagic crashing NodeRed entirely because my bridge was offline is too much of a limitation for me.

@astromediaonly
Copy link

Having this too - makes this library completely unusable because after few hours I get this and whole automation stops working :/

Node-RED version: 3.0.2
Running with Docker
Latest version of Hue Magic

@mauricedominic
Copy link

If you are still interested in using huemagic, you could switch to node-red-contrib-huemagic-fork that includes several bugfixes and community contributions. Instructions on how to switch are included in the README.

@astromediaonly
Copy link

I did in last hope, is it fixed there? I did not expected it because the other issue Im also having of constant spam of "Error requesting info from the bridge. Reconnect in some secs. undefined" was not yet it seems.
(I did managed to write sheduled script that will restart it hopefully if it crashed as last option but it was pain :) )

@mauricedominic
Copy link

The above mentioned fix (1af6c29) is included in the fork.

In what version of Huemagic are you facing the error msg spam: "Error requesting info from the bridge. Reconnect in some secs. undefined"?

@astromediaonly
Copy link

Nice thx. I would say the latest (installed like two days ago), yesterday I changed it to -fork version and as Im checking I have no logs for today yet so I guess its possible it stopped - weird. Its deffinitelly happening in normal hue-magic but I guess it could be fixed in -fork too ... i will keep an eye on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants