Keywords: NodeJS - AWS - Technical issue - Other
bnsupport ID: e699330e-f209-c509-4719-4a66509ab8ef
I have 2 servers on AWS Lightsail 1 x Node.js and 1 x LAMP.
The node server is used to route socket connections and the LAMP server is used for the client site.
Everything works perfect locally.
When using on AWS though, I get a range of issues from the clients:
I have 14 connections open in different tabs 1 in Chrome and 13 in Safari, some got all the socket traffic but others didn't with the following errors.
WebSocket connection to 'wss://domain/socket.io/?EIO=3&transport=websocket&sid=3axCD0RkR3HgZnueAAEb' failed: WebSocket is closed before the connection is established.
[Error] WebSocket connection to 'wss://domain/socket.io/?EIO=3&transport=websocket&sid=ItRcOtU6czhYNrpXAAE-' failed: Unexpected response code: 400
Failed to load resource: the server responded with a status of 400 (Bad Request)
What can cause these errors?