Failed to execute 'setRemoteDescription' on 'RTCPeerConnection'

Hi there,

after my previous post, I have used the given sendbird calls implementation for my own angular app:

However, with it, I am facing an issue randomly (at least 2 out of 4 times) which I can’t fix myself. It seems to be related to the underlying sendbird implementation.
When I start a call, the call connects as expected (also throws onConnected), however it then throws an error:

Uncaught (in promise) DOMException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable

I am not able to debug this any further and would really appreciate any help!
I have copied my current project and striped out all irrelevant files. The link for this is here:

In order to start the call, copy your sendbird credentials into the environment.* files, run the app (ng serve) and then go with two tabs:

  1. Go to localhost:4200/calls/practitioner?video=true (the initiator, userA)
  2. Go to localhost:4200/calls/video (the respondent, userB)

When you start the call using the practitioner’s screen, it’ll work sometimes and sometimes it’ll show the above error. By this, I’m not able to reliably use product.

Any help would be highly appreciated!

We are consistently seeing this error in the latest version of Chrome (100.0.4896.75) on our internal apps and the Sendbird Video example app. Unfortunately sendbird-calls appears to be completely broken on the latest Chrome

Hi @Reagan,

We are currently aware of an issue with Chrome version 100.X +. As soon as we have a fix for this, I’ll let you know here.