Getting disconnected from WSS

Hello all,
I’m disconnected short after connecting to WSS using chrome.
I have my App_front on S3, my App_Back on EC2 and my openvidu server on EC2 too.

When I create a session here is the openvidu log:

[INFO] 2022-03-23 12:20:39,821 [http-******-exec-7] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions {customSessionId=incept, mediaMode=ROUTED, recordingMode=MANUAL, defaultRecordingProperties={name=, hasAudio=true, hasVideo=true, outputMode=COMPOSED, recordingLayout=BEST_FIT, resolution=1280x720, frameRate=25, shmSize=536870912}}
openvidu-server_1  | [INFO] 2022-03-23 12:20:39,821 [http-******-exec-7] io.openvidu.server.rest.SessionRestController - New session incept created [excessive, incept]
openvidu-server_1  | [INFO] 2022-03-23 12:20:39,938 [http-nio-*****-exec-8] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions/incept/connection {type=null, data=null, role=PUBLISHER, kurentoOptions=null, rtspUri=null, networkCache=null}
openvidu-server_1  | [INFO] 2022-03-23 12:20:39,939 [http-nio-****-exec-8] io.openvidu.server.coturn.CoturnCredentialsService - Creating COTURN user
openvidu-server_1  | [INFO] 2022-03-23 12:20:39,953 [http-nio-****-exec-8] io.openvidu.server.coturn.CoturnCredentialsService - COTURN user created: true
openvidu-server_1  | [INFO] 2022-03-23 12:20:40,196 [http-*****-exec-9] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions {customSessionId=incept, mediaMode=ROUTED, recordingMode=MANUAL, defaultRecordingProperties={name=, hasAudio=true, hasVideo=true, outputMode=COMPOSED, recordingLayout=BEST_FIT, resolution=1280x720, frameRate=25, shmSize=536870912}}
openvidu-server_1  | [WARN] 2022-03-23 12:20:40,197 [http-nio-*****-exec-9] io.openvidu.server.rest.SessionRestController - Session incept is already created
openvidu-server_1  | [INFO] 2022-03-23 12:20:40,310 [http-nio-****-exec-10] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions/incept/connection {type=null, data=null, role=PUBLISHER, kurentoOptions=null, rtspUri=null, networkCache=null}
openvidu-server_1  | [INFO] 2022-03-23 12:20:40,311 [http-nio-0******-exec-10] io.openvidu.server.coturn.CoturnCredentialsService - Creating COTURN user
openvidu-server_1  | [INFO] 2022-03-23 12:20:40,325 [http-nio-******-exec-10] io.openvidu.server.coturn.CoturnCredentialsService - COTURN user created: true

May someone tell me if there is something wrong? as openvidu recieves the sessionId and logs it as you can see but then I get “Connection problem Oops Trying to reconnect…”

I’ve got the same issue when was developing local using Chrome but not using Safari.
Now that I’m done developing my features I need it to work on chrome.
Thank you

Hello,

I managed to get more info about the error. the disconnection is due "WebSocket network error: OSStatus Error -9807: Invalid certificate chain ". I’ve deployed Openvidu with a Self-signed certificate as I don’t have a Fully Qualified Domain Name. How may I fix this issue?

Thank you for your help.

You need to accept the selfsigned certificate of OpenVidu Server in your browser before accessing your App.

How may I do it? I didn’t get anything for that.

Your OpenVidu Server (not your app) should have an URL to reach the service.

Enter with this URL in your browser and accept the self-signed certificate.

Or just use a valid certificate for OpenVidu deployment (with a FQDN and Letsencrypt for example)

Regards

You can check these sections of the documentation, depending on your deployment:

Thanks that was the trick. I entered the URL on the browser and accepted the certificate. Didn’t work on all browsers though.