hassio-addons/addon-node-red

WebSocket closed - Message size exceeds limit #579

poberth posted onGitHub

Problem/Motivation

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.

Expected behavior

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] almost 5 years ago

Home Assistant WebSocket API error: Received message 258:WebSocketError('Message size 4392952 exceeds limit 4194304') is not str

This is either an issue with the Home Assistant palette/Node in Node-RED itself or Home Assistant Core.

From an add-on perspective, there is not much I can do.

Upstream project:

https://github.com/zachowj/node-red-contrib-home-assistant-websocket

<blockquote><img src="https://avatars2.githubusercontent.com/u/37859597?s=400&v=4" width="48" align="right"><div><img src="https://github.githubassets.com/favicons/favicon.svg" height="14"> GitHub</div><div><strong><a href="https://github.com/zachowj/node-red-contrib-home-assistant-websocket">zachowj/node-red-contrib-home-assistant-websocket</a></strong></div><div>Node-RED integration with Home Assistant Core. Contribute to zachowj/node-red-contrib-home-assistant-websocket development by creating an account on GitHub.</div></blockquote>

posted by frenck almost 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] almost 5 years ago

Fund this Issue

$0.00
Funded

Pull requests