RafalWilinski / express-status-monitor

🚀 Realtime Monitoring solution for Node.js/Express.js apps, inspired by status.github.com, sponsored by https://dynobase.dev
https://dynobase.dev/
MIT License
3.59k stars 253 forks source link

WebSocket connection to '<URL>' failed: WebSocket is closed before the connection is established. #211

Closed kitavidavis closed 9 months ago

kitavidavis commented 1 year ago

The default configuration seems to work fine in localhost. However, running it in a production environment results to error 400. Any means on how to solve this?

pml-eduardochaves commented 9 months ago

@kitavidavis Same for me. It is deployed in a AWS EC2 Cluster but I am getting this issue. Localhost works fine.

kitavidavis commented 9 months ago

@pml-eduardochaves the issue was due to proxy configurations. Check your header's Content-Security-Policy configuration as well. If you are running another instance of socket connection, you might also consider looking at how it is affecting your express-status-monitor WebSocket connection.