mattmattmatt / node-red-contrib-yeelight-compat-hue

💡 A Node-RED node for controlling Yeelight devices, compatible with node-red-contrib-node-hue flows.
https://flows.nodered.org/node/node-red-contrib-yeelight-compat-hue
MIT License
10 stars 12 forks source link

Crashing NodeRED when deploy changes #25

Open enclude opened 4 years ago

enclude commented 4 years ago

Hi, when I create and set configuration in NodeRED and Deploy the changes I got crash of node red. Log from console bellow. It is does not matter when I install this from CLI or "Pallete Manager" or Raspberry Pi 3 or 4. Always this error has occured.

25 Sep 13:09:45 - [info] Starting flows 25 Sep 13:09:45 - [info] Started flows 25 Sep 13:09:46 - [red] Uncaught Exception: 25 Sep 13:09:46 - SyntaxError: Unexpected token , in JSON at position 6 at JSON.parse (<anonymous>) at parseResult (/home/pi/.node-red/node_modules/yeelight2/index.js:189:24) at Yeelight.parse (/home/pi/.node-red/node_modules/yeelight2/index.js:204:5) at Array.forEach (<anonymous>) at Yeelight.<anonymous> (/home/pi/.node-red/node_modules/yeelight2/index.js:40:8) at Socket.emit (events.js:315:20) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:271:9) at Socket.Readable.push (_stream_readable.js:212:10) at TCP.onStreamRead (internal/stream_base_commons.js:186:23) nodered.service: Main process exited, code=exited, status=1/FAILURE nodered.service: Failed with result 'exit-code'. nodered.service: Service RestartSec=100ms expired, scheduling restart. nodered.service: Scheduled restart job, restart counter is at 5. Stopped Node-RED graphical event wiring tool. Started Node-RED graphical event wiring tool. 25 Sep 13:09:48 - [info]

nedisonn commented 3 years ago

I have the same problem, and I can't find anything wrong with my nodes, yet I still get that message.

michelefa1988 commented 1 year ago

Any updates / work arounds on this? :(