Node-RED WebSocket closed - Message size exceeds limit

Hi,
I recently upgraded my node-red install to 6.3.0 on HA 0.110.4 (HassOS 4.8 / Supervisor 225).

On previous version, node-red was connecting to HA without any problem but now there seems to be a problem with the WebSocket API.

Here is the logs from Supervisor

20-06-01 18:06:53 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-06-01 18:06:53 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-06-01 18:06:53 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-06-01 18:06:57 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 258:WebSocketError('Message size 4392952 exceeds limit 4194304') is not str
20-06-01 18:06:57 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed

Here is the logs from the node-red add-on

1 Jun 14:06:36 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
1 Jun 14:06:36 - [info] [server:Home Assistant] WebSocket Connected to http://supervisor/core
1 Jun 14:06:36 - [debug] [server:Home Assistant] config server event listener connected
1 Jun 14:06:40 - [info] [server:Home Assistant] WebSocket Closed http://supervisor/core

My node-red Home Assistant palette is configured with the “I use the Home Assistant Add-on” setting.

Any one can help me solve this issue?

Thanks.
Pierre-Olivier

Hi,

It is the same for me.
Running HA 0.114.2 (HassOS 4.12 / Supervisor 234).

Got this as well, below a thread where this is discussed. Below answer seems a bit odd… just disable all custom components… when I do this my HA looks a bit empty and without purpose. Perhaps the Node-RED API call should be changed if possible?


Node Red is fetching all your entities in a single call. Some of your entities seems to contain a lot of data in its attributes causing it to fail. Try disabling all custom components.

How are people getting around this ? I mean if i disable EVERY integration in home assistant I’m left w/ 300k… this 4mb limit seems arbitrary

1 Like

Anyone with a normal ring security system, or multiple homes is going to have thousands of entities. Running HA without any integrations is not a solutions, either increase the size dramatically or make it settable. Most power users aren’t running on a Raspberry PI 3, I have an VM on a DL380.

I made a feature request you can upvote. Increase websocket message size limit for node red