Failed to set remote answer sdp: Called in wrong state: kStable

Why is this error happening and when is the signalling state of peer = “stable”

Hard to really tell without showing some code.