Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket Connection Fails for Node-RED UI via Ingress Proxy with Large Entity Count #1986

Open
zachowj opened this issue Oct 28, 2024 · 5 comments

Comments

@zachowj
Copy link
Contributor

zachowj commented Oct 28, 2024

Problem/Motivation

Any part of the Node-RED UI that relies on the websocket connection—such as inject nodes, the debug panel, and input field autocomplete—becomes unusable for users who access the Node-RED UI through the ingress proxy and have a large number of entities and devices. This occurs because the ingress proxy has a default max message size of 4MB. However, when connecting directly to the Node-RED UI on port 1880, this isn't an issue since Node.js has a default max message size of 100 MB.

This is similar to the issue addressed in this supervisor API proxy fix: home-assistant/supervisor#4443.

Expected behavior

The Node-RED UI should function normally, allowing users to utilize inject nodes, the debug panel, autocomplete, and other websocket-reliant features, even with a large number of entities and devices.

Actual behavior

When accessing the Node-RED UI via the ingress proxy, the websocket connection between the UI and backend fails, making any part of the UI that relies on it (e.g., inject nodes, debug panel) unusable.

Steps to reproduce

  1. Access Node-RED UI through Home Assistant using the ingress proxy.
  2. Ensure the Home Assistant instance has a large number of entities and devices.
  3. Attempt to use features like inject nodes or the debug panel.

Proposed changes

This comment was marked as resolved.

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Nov 28, 2024
@zachowj
Copy link
Contributor Author

zachowj commented Nov 29, 2024

still relevant

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Nov 29, 2024

This comment was marked as resolved.

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Dec 30, 2024
@zachowj
Copy link
Contributor Author

zachowj commented Dec 30, 2024

still relevant

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Dec 31, 2024
@frenck
Copy link
Member

frenck commented Jan 4, 2025

The default load handled on the nginx in between is already 512m (like just big). I suspect the buffering having issues with the nginx proxy in this case. I'll disable those to see how it goes.

../Frenck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants