# Getting disconnected from WSS

**URL:** <https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [March 23, 2022, 12:56pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829 "2022-03-23T12:56:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shems\_Sanaa](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shems_sanaa/32/1854_2.png) [@Shems\_Sanaa](https://openvidu.discourse.group/u/Shems_Sanaa)\
**Post date:** [March 23, 2022, 12:56pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/1 "2022-03-23T12:56:13Z")

</div>

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:

```auto
[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

---

<div class="post-metadata">

**Author:** ![Shems\_Sanaa](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shems_sanaa/32/1854_2.png) [@Shems\_Sanaa](https://openvidu.discourse.group/u/Shems_Sanaa)\
**Post date:** [March 23, 2022, 4:26pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/2 "2022-03-23T16:26:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [March 24, 2022, 10:06am UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/3 "2022-03-24T10:06:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Shems\_Sanaa](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shems_sanaa/32/1854_2.png) [@Shems\_Sanaa](https://openvidu.discourse.group/u/Shems_Sanaa)\
**Post date:** [March 24, 2022, 1:00pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/4 "2022-03-24T13:00:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [March 24, 2022, 1:03pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/5 "2022-03-24T13:03:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 24, 2022, 4:53pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/6 "2022-03-24T16:53:27Z")

</div>

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

- [OpenVidu CE AWS](https://docs.openvidu.io/en/2.21.0/deployment/ce/aws/#domain-and-ssl-configuration-examples)
- [OpenVidu CE On Premises](https://docs.openvidu.io/en/2.21.0/deployment/ce/on-premises/#domain-and-ssl-configuration-examples)
- [OpenVidu PRO AWS](https://docs.openvidu.io/en/2.21.0/deployment/pro/aws/#domain-and-ssl-configuration-examples)
- [OpenVidu PRO On Premises](https://docs.openvidu.io/en/2.21.0/deployment/pro/on-premises/#domain-and-ssl-configuration-examples)
- [OpenVidu ENTERPRISE AWS](https://docs.openvidu.io/en/2.21.0/deployment/enterprise/aws/)

---

<div class="post-metadata">

**Author:** ![Shems\_Sanaa](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shems_sanaa/32/1854_2.png) [@Shems\_Sanaa](https://openvidu.discourse.group/u/Shems_Sanaa)\
**Post date:** [March 24, 2022, 6:05pm UTC](https://openvidu.discourse.group/t/getting-disconnected-from-wss/3829/7 "2022-03-24T18:05:22Z")

</div>

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