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

“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.

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

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

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.