node-red / node-red-dashboard

A dashboard UI for Node-RED
Other
1.31k stars 453 forks source link

NodeRed Crash on any Dashboard action #735

Open bierwald opened 2 years ago

bierwald commented 2 years ago

Current Behavior

When opening the NodeRed Dashboard, any action (klick on a switch, button, etc) crashes NodeRed. In the NodeRed Log an error within a call of the buffer-util.js of engine.io appears. There is a function call to bufferUtil.unmast which seems not to be there.

I'm not sure if my installation is broken or if this is a general issue. Reinstallation of NodeRed didn't help at all.

NodeRed version: v2.1.3 Node.js version: v12.22.7 nodeRed.log

The exception appears on any action at the Dashboard. It doesn't matter, from which device the dashboard is accessed. The installation runs on a RaspberryPi 4

Expected Behavior

The expected behaviour is to run the requested action (which it doesn't). NodeRed Crashes.

Steps To Reproduce

No response

Example flow

Just a simple Dashboard switch (no input, no output, default configuration) produces the issue.

Environment

knolleary commented 2 years ago

Please provide the actual error from the log.

knolleary commented 2 years ago

Sorry - I see you did include a link to the log.

As this appears related to dashboard (we don't us socket.io in the core), I will move the issue over to the dashboard repository as this is the issue track for core Node-RED issues.

dceejay commented 2 years ago

Most odd - it's coming from inside the websocket bufferUtil library which has been stable for a good while. Do you have any other third party nodes that may be using websockets at all ? I've tried on a couple of devices (but not a Pi4) with a clean install and node12 etc - all good.