# "Failed to set remote answer sdp: Called in wrong state: stable"

**URL:** <https://react-native-webrtc.discourse.group/t/failed-to-set-remote-answer-sdp-called-in-wrong-state-stable/1464>\
**Category:** Help\
**Created:** [January 15, 2022, 4:58pm UTC](https://react-native-webrtc.discourse.group/t/failed-to-set-remote-answer-sdp-called-in-wrong-state-stable/1464 "2022-01-15T16:58:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![salmanrajz](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/salmanrajz/32/567_2.png) [@salmanrajz](https://react-native-webrtc.discourse.group/u/salmanrajz)\
**Post date:** [January 15, 2022, 4:58pm UTC](https://react-native-webrtc.discourse.group/t/failed-to-set-remote-answer-sdp-called-in-wrong-state-stable/1464/1 "2022-01-15T16:58:45Z")

</div>

# “Failed to set remote answer sdp: Called in wrong state: stable”

The app work fine if I initiate the offer from some other device like from my browser and the answer sdp is generated by from the phone after setting the remote description. But when I initiate the offer on my phone and then try to set remote description with the answer sdp generated from the browser it throughs the warning  
Possible Unhandled Promise Rejection (id: 0):  
“Failed to set remote answer sdp: Called in wrong state: stable”

**I haven’t used any database for now offer and answer are both copy/pasted directly.**

---

<div class="post-metadata">

**Author:** ![salmanrajz](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/salmanrajz/32/567_2.png) [@salmanrajz](https://react-native-webrtc.discourse.group/u/salmanrajz)\
**Post date:** [January 18, 2022, 12:57pm UTC](https://react-native-webrtc.discourse.group/t/failed-to-set-remote-answer-sdp-called-in-wrong-state-stable/1464/2 "2022-01-18T12:57:04Z")

</div>

Hello anyone, I’m still looking for a solution.  
Thanks

---

<div class="post-metadata">

**Author:** ![feyisayo-dev](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/feyisayo-dev/32/733_2.png) [@feyisayo-dev](https://react-native-webrtc.discourse.group/u/feyisayo-dev)\
**Post date:** [June 25, 2023, 2:09am UTC](https://react-native-webrtc.discourse.group/t/failed-to-set-remote-answer-sdp-called-in-wrong-state-stable/1464/3 "2023-06-25T02:09:55Z")

</div>

I am having same issue with you have u found a solution

---

<div class="post-metadata">

**Author:** ![8BallBomBom](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/8ballbombom/32/710_2.png) [@8BallBomBom](https://react-native-webrtc.discourse.group/u/8BallBomBom)\
**Post date:** [June 25, 2023, 12:55pm UTC](https://react-native-webrtc.discourse.group/t/failed-to-set-remote-answer-sdp-called-in-wrong-state-stable/1464/4 "2023-06-25T12:55:04Z")

</div>

The most common reason for experiencing that error is a development fault in the call timing mechanism. You’re pretty much trying to process a session answer when you haven’t generated an offer or have already processed an answer.
