Failed to set remote answer sdp: Called in wrong state: kStable error. No much info about the error, when Googled

8,674 views
Skip to first unread message

Anil Wadghule

unread,
May 17, 2018, 11:32:45 AM5/17/18
to discuss...@googlegroups.com
Hi,

I am getting following error in ICE restart flow.

cool-dream-8874#live:1 Uncaught (in promise) DOMException: Failed to set remote answer sdp: Called in wrong state: kStable

It comes when I sent an offer with iceRestart: true, and I receive an answer back. This error comes while setting setRemoteDescription with received answer SDP.

Not sure what's wrong. 

Thanks,
Anil

Taylor Brandstetter

unread,
May 17, 2018, 4:31:05 PM5/17/18
to discuss-webrtc
Are you calling setLocalDescription with the offer? The error means you're attempting to apply an answer without applying a corresponding offer.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CABagyxd7XmugpaLiqyrBss2HMXixswJvHwEipericO1d2pHwnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Anil Wadghule

unread,
May 17, 2018, 5:14:23 PM5/17/18
to discuss...@googlegroups.com
What does kStable mean.. I don't find any info about it.



On Fri, May 18, 2018 at 2:01 AM 'Taylor Brandstetter' via discuss-webrtc <discuss...@googlegroups.com> wrote:
Are you calling setLocalDescription with the offer? The error means you're attempting to apply an answer without applying a corresponding offer.
On Thu, May 17, 2018 at 8:32 AM, Anil Wadghule <anild...@gmail.com> wrote:
Hi,

I am getting following error in ICE restart flow.

cool-dream-8874#live:1 Uncaught (in promise) DOMException: Failed to set remote answer sdp: Called in wrong state: kStable

It comes when I sent an offer with iceRestart: true, and I receive an answer back. This error comes while setting setRemoteDescription with received answer SDP.

Not sure what's wrong. 

Thanks,
Anil

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAK35n0a%2BFtHDF8xFvavS4NSuE%3D50qYAkqDoruYXYoCHFp-khqw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Best,
Anil

Taylor Brandstetter

unread,
May 18, 2018, 3:51:10 PM5/18/18
to discuss-webrtc
It's one of the values of the RTCSignalingState enum, representing the state of offer/answer negotiation. If you follow that link you'll see a diagram that shows the transitions that are allowed.

On Thu, May 17, 2018 at 2:14 PM, Anil Wadghule <anild...@gmail.com> wrote:
What does kStable mean.. I don't find any info about it.



On Fri, May 18, 2018 at 2:01 AM 'Taylor Brandstetter' via discuss-webrtc <discuss-webrtc@googlegroups.com> wrote:
Are you calling setLocalDescription with the offer? The error means you're attempting to apply an answer without applying a corresponding offer.
On Thu, May 17, 2018 at 8:32 AM, Anil Wadghule <anild...@gmail.com> wrote:
Hi,

I am getting following error in ICE restart flow.

cool-dream-8874#live:1 Uncaught (in promise) DOMException: Failed to set remote answer sdp: Called in wrong state: kStable

It comes when I sent an offer with iceRestart: true, and I receive an answer back. This error comes while setting setRemoteDescription with received answer SDP.

Not sure what's wrong. 

Thanks,
Anil

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.


--
Best,
Anil

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CABagyxdRA%3DFV0cBJ7S1_2Nf3rwoobLObOwUPPvwYS2soz2j-bg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages