Describe the bug
Sometimes lights don't react to input from an http request node.
A "RangeError: Maximum call stack size exceeded" error is logged in the server console
Expected behavior
The error should not happen obviously
Please complete the following information:
- Node-RED version: [latest docker image]
- Device running Node-RED: [raspberry]
Additional context
the http request node adds msg.req und msg.res to the message object.
Huemagic tries to merge that req object with a future state here: https://github.com/Foddy/node-red-contrib-huemagic/blob/master/huemagic/hue-light.js#L283
The req object has circular fields, so the merge function would call itself indefinitly.
This should be an easy fix.