Node Red Websocket Error

First, Happy new Year.
Hello, I have some problems with node red and don't really find the source of the problem.

8 Jan 09:43:46 - [info] [remote-access:NR_Dash] starting ssh process
8 Jan 09:44:15 - [red] Uncaught Exception:
8 Jan 09:44:15 - [error] Error: Can't send data because WebSocket is not opened.
    at exports.throwIf (/home/chris/.node-red/node_modules/websocket-as-promised/src/utils.js:4:11)
    at WebSocketAsPromised.send (/home/chris/.node-red/node_modules/websocket-as-promised/src/index.js:248:5)
    at Timeout._onTimeout (/home/chris/.node-red/node_modules/ewelink-api/src/mixins/openWebSocket.js:39:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 17.738s CPU time.
nodered.service: Scheduled restart job, restart counter is at 12.
Stopped Node-RED graphical event wiring tool.
nodered.service: Consumed 17.738s CPU time.
Started Node-RED graphical event wiring tool.
8 Jan 09:44:36 - [info]
Welcome to Node-RED
===================
8 Jan 09:44:36 - [info] Node-RED version: v3.0.2
8 Jan 09:44:36 - [info] Node.js  version: v16.19.0
8 Jan 09:44:36 - [info] Linux 5.15.84-v8+ arm64 LE
8 Jan 09:44:37 - [info] Loading palette nodes
8 Jan 09:44:41 - [info] Polymer started at /polymer
8 Jan 09:44:41 - [info] Dashboard version 3.3.1 started at /ui
8 Jan 09:44:41 - [info] Settings file  : /home/chris/.node-red/settings.js
8 Jan 09:44:41 - [info] Context store  : 'default' [module=memory]
8 Jan 09:44:41 - [info] User directory : /home/chris/.node-red
8 Jan 09:44:41 - [info] Projects directory: /home/chris/.node-red/projects
8 Jan 09:44:42 - [info] Server now running at http://127.0.0.1:1880/
8 Jan 09:44:42 - [info] Active project : Homeautomation_cretu
8 Jan 09:44:42 - [info] Flows file     : /home/chris/.node-red/projects/Homeautomation_cretu/flows.json
8 Jan 09:44:42 - [info] Starting flows
8 Jan 09:44:42 - [info] BooleanLogicUltimate: Will create 4 dummy (false) values
8 Jan 09:44:42 - [info] BooleanLogicUltimate: Will create 4 dummy (false) values
8 Jan 09:44:42 - [info] BooleanLogicUltimate: Will create 2 dummy (false) values
8 Jan 09:44:42 - [info] [remote-access:NR_UI] Server: nodered04.remote-red.com InstanceHash: ngg5hh30hib6r4ofbkha4atl1w7pmk8n7cm1p4uay2yzqppbalydebim3wbjx8ud
8 Jan 09:44:42 - [info] [remote-access:NR_Dash] Server: nodered04.remote-red.com InstanceHash: lll2saprwdcagl91d2z1vv29n0z5k5fqxrjx3zh6jp344wneo3rm08ygl3sc2fgn
TypeError: Cannot read properties of undefined (reading '_originalWires')
    at Subflow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Subflow.js:286:35)
    at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:224:41)
    at Object.start [as startFlows] (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/index.js:394:33)
8 Jan 09:44:42 - [info] Started flows
8 Jan 09:44:42 - [info] [remote-access:NR_UI] Using nodered04.remote-red.com on port 53904
8 Jan 09:44:42 - [info] [remote-access:NR_UI] starting ssh process
8 Jan 09:44:42 - [info] [remote-access:NR_Dash] Using nodered04.remote-red.com on port 54154
8 Jan 09:44:42 - [info] [remote-access:NR_Dash] starting ssh process

Could you please tell me where to look?
I'm running Node Red on a pi4 standalone system, at the moment only node red is installed and running.

Thank you very much in advance.

Did this ever work?
if it did, do you know what you changed?
Are you using HomeAutomation?
Can you create a small flow demonstrating the issue? If so please export it and paste it to a reply

You can start node-red with the --safe option node-red --safe and it won't run anything until you do a reply.

It looks like you have two dashboards installed - node-red-dashboard and node-red-contrib-polymer. If you look at the flow page for node-red-contrib-polymer you will see it is unmaintained and over three years old. I would suggest removing it.

ewelink.

Cannot read properties of undefined (reading '_originalWires')
Subflow.start

subflow ?

Hi, thanks for the prompt reply.

It worked 1 day.
I'm using NR as stand alone.
Removed polymer.

Hi, thank you also for the prompt reply.
I've stopped Ewelink for the moment.
The problem doesn't seem to come again.
Is the WebSocket in NR closed or in Ewelink?

Don't really understand that with the subflow. What does it mean?

and did you change anything after that day?

Installed some nodes and played a little bit :sweat_smile:
it seems that it was the ewelink node, since I've deleted it, it's working :wink:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.