# Receiving Unhandled Rejection Error

**URL:** <https://openvidu.discourse.group/t/receiving-unhandled-rejection-error/1431>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [July 10, 2020, 1:24pm UTC](https://openvidu.discourse.group/t/receiving-unhandled-rejection-error/1431 "2020-07-10T13:24:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iam\_vish](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/iam_vish/32/712_2.png) [@Iam\_vish](https://openvidu.discourse.group/u/Iam_vish)\
**Post date:** [July 10, 2020, 1:24pm UTC](https://openvidu.discourse.group/t/receiving-unhandled-rejection-error/1431/1 "2020-07-10T13:24:41Z")

</div>

Hi Micael

While using the application, we get an error sometimes

Unhandled Rejection(Invalid State Error), Failed to execute ‘send’ on ‘websocket’ . Still in CONNECTING STATE.

while we were using the app, the video got frozen and this error message seems to keep reflecting our browser.

can u help investigate how to fix this instability

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [July 10, 2020, 2:41pm UTC](https://openvidu.discourse.group/t/receiving-unhandled-rejection-error/1431/2 "2020-07-10T14:41:14Z")

</div>

What application are you using? Do you have the same issue with OpenVidu Call or any official tutorial?

Can you describe where you have this error? When a session is already established and the video is flowing? It seems a network disconnection. It is possible? What is the frequency where this error is produced?

Best regards

---

<div class="post-metadata">

**Author:** ![Iam\_vish](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/iam_vish/32/712_2.png) [@Iam\_vish](https://openvidu.discourse.group/u/Iam_vish)\
**Post date:** [July 10, 2020, 6:40pm UTC](https://openvidu.discourse.group/t/receiving-unhandled-rejection-error/1431/3 "2020-07-10T18:40:37Z")

</div>

this issue occurred when the session is already established. And out of where it just got disconnected with this code.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [July 14, 2020, 2:44pm UTC](https://openvidu.discourse.group/t/receiving-unhandled-rejection-error/1431/4 "2020-07-14T14:44:25Z")

</div>

Can you share OpenVidu server logs and browser console when the issue appears?

Do you have any way to replicate it? It occurs frequently?
