Err_insecure_response

We followed the tutorial and made an ec2 instance on aws.

Right now, our application server is running on my localhost at localhost:8080 in development. In my server.js file, we use the node package to make a new openvidu variable like so.

new OpenVidu(“http://*****.us-east-2.compute.amazonaws.com:5443/”, ******)

We can connect to the ec2 just fine, make a new session, and get a token from it. However, in the browser code (we are building our app in electron), when we try to connect to the session with the token, we get this error over and over:

webSocketWithReconnection.js:101 WebSocket connection to ‘wss://ec2-*******.us-east-2.compute.amazonaws.com/openvidu’ failed: Error in connection establishment: net::ERR_INSECURE_RESPONSE

I’m not sure if this has anythgin to do with the fact that my server is running on a localhost, or that I’m connecting to my ec2 instance at http://**

Hi @jperuzzi, what instructions are you using? If you’ve deployed with instructions here:

You should not be using port 5443. You must use port 443 and https. Container openvidu-nginx acts as a reverse proxy for the openvidu-server running