Websocket conection lost issue,

We've got Node-RED running on GCP pods with its own ingress. We're using an iframe to embed the Node-RED editor (version 3.0.2), but we keep hitting a snag: "WebSocket connection to 'wss://dev.nodered,adani.digital/comms' failed." This only happens when we're using the editor, which is kind of a pain because we rely on it heavily to build business logic flows.

We use token-based authentication, passing the token in the URL like this: ?access_token=. This lets us verify users on the backend.

This WebSocket issue popped up in the older 3.0.2 version, so we thought upgrading to 4.0.8 might do the trick. No luck! In fact, we're seeing even more of these errors now.

To make matters worse, we recently added the multiplayer feature, and we're constantly getting the login screen within the Node-RED editor. This usually means authentication went sideways, but there's nothing in the pod logs which would show the errors in the authentication flow.

Can you help us get to the bottom of this?

1 Like