Why appear "connection lost" in browsers

When I access ui by https://xxx/ui/, it shows Connection lost.

please help me . Thank you !

It means the websocket communication was interrupted, which can have multiple causes.

Are there any error messages in the browser's debug console (open the developer tools)?


Has it anything with setting.js?

No, more likely a browser, network or firewall issue.

Which browser are you using? Have you tried others browsers?

above picture used in Microsoft Edge,

in Chrome , will display this as follow:

It appears the "connection lost" error is caused by the Network Error 12030 from your earlier screenshot. It's an error I've seen referenced elsewhere before, in connection to websockets. It's thrown by the browser, specifically by a couple versions of Internet Explorer and Edge, and from what I remember (and a quick search now) nobody has really a clue what's causing it, and Microsoft is not responding to any questions either. It appears that after some inactivity on the websocket connection the browser closes it, but nobody really has details or more information. It doesn't just happen with Node-RED, but also common among people working with MFC/.NET kind of applications that use websockets.

1 Like

Hi @TomLi the error you get - i get (when viewing your dashboard) too.

I dont know what is causing it but strongly suggest you secure your installation ASAP...

... before it becomes a cryptomining bot

You have no security on your broker or node-red (and who knows what else?)


thanks very much

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