Webrtcbin generating invalid answer

Also when I tried the same thing from a firefox based browser, I’m not getting any error thrown from the browser. However I get

0:35:48.408545959 45622 0x6000012c2990 WARN               webrtcbin gstwebrtcbin.c:7007:_set_description_task:<webrtcbin> returning error: media 1 is missing or contains an empty 'ice-ufrag' attribute
0:35:48.408561209 45622 0x6000012c2990 WARN               webrtcbin gstwebrtcbin.c:4833:_create_sdp_task:<webrtcbin> returning error: Asked to create an answer without a remote description

when I run with GST_DEBUG=3 for the following offer:

v=0
o=mozilla...THIS_IS_SDPARTA-99.0 7234526636243871857 3 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 64:27:2F:AF:64:6C:70:F3:E6:0B:96:38:11:78:A4:FF:11:F2:B0:77:F1:A2:88:59:7C:62:4A:F2:E4:8C:4A:96
a=group:BUNDLE 0
a=ice-options:trickle
a=msid-semantic:WMS *
m=application 56269 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 64.227.163.77
a=candidate:0 1 UDP 2122187007 bacc90c4-1ccd-47d2-9514-49d976ce115a.local 61701 typ host
a=candidate:5 1 UDP 2122252543 ef7727b8-0128-47bb-883e-5a3c623a0a2f.local 59898 typ host
a=candidate:8 1 TCP 2105458943 bacc90c4-1ccd-47d2-9514-49d976ce115a.local 9 typ host tcptype active
a=candidate:9 1 TCP 2105524479 ef7727b8-0128-47bb-883e-5a3c623a0a2f.local 9 typ host tcptype active
a=candidate:2 1 UDP 1685987071 49.207.242.121 26837 typ srflx raddr 0.0.0.0 rport 0
a=candidate:4 1 UDP 92150271 64.227.163.77 56269 typ relay raddr 64.227.163.77 rport 56269
a=candidate:4 1 UDP 92149759 64.227.163.77 49104 typ relay raddr 64.227.163.77 rport 49104
a=sendrecv
a=end-of-candidates
a=ice-pwd:6c4dab516cc6c897a602f0d6432d9021
a=ice-ufrag:88132378
a=mid:0
a=setup:actpass
a=sctp-port:5000
a=max-message-size:1073741823
m=video 0 UDP/TLS/RTP/SAVPF 120
c=IN IP4 0.0.0.0
a=inactive
a=mid:1
a=rtpmap:120 VP8/90000

In the working case where I’ve commented out the transceiver.stop() on firefox, I’m getting the offer:

v=0
o=mozilla...THIS_IS_SDPARTA-99.0 6330021262124301521 3 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 29:2D:D6:FA:13:06:88:84:8E:AE:2B:83:45:C3:6E:B5:F5:9B:63:EF:73:38:2C:A0:39:6C:CC:0F:0A:43:10:55
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=application 51098 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 64.227.163.77
a=candidate:0 1 UDP 2122187007 7f645abd-8ab5-4054-afd4-2a7e6505daeb.local 55544 typ host
a=candidate:5 1 UDP 2122252543 99ea825b-cea5-4b81-ae03-b1c772751bb7.local 49881 typ host
a=candidate:8 1 TCP 2105458943 7f645abd-8ab5-4054-afd4-2a7e6505daeb.local 9 typ host tcptype active
a=candidate:9 1 TCP 2105524479 99ea825b-cea5-4b81-ae03-b1c772751bb7.local 9 typ host tcptype active
a=candidate:2 1 UDP 1685987071 49.207.242.121 25734 typ srflx raddr 0.0.0.0 rport 0
a=candidate:4 1 UDP 92150271 64.227.163.77 51098 typ relay raddr 64.227.163.77 rport 51098
a=candidate:4 1 UDP 92149759 64.227.163.77 48121 typ relay raddr 64.227.163.77 rport 48121
a=sendrecv
a=end-of-candidates
a=ice-pwd:96d7ecc4a8b254c476db179c84e0bd20
a=ice-ufrag:51995e37
a=mid:0
a=setup:actpass
a=sctp-port:5000
a=max-message-size:1073741823
m=video 9 UDP/TLS/RTP/SAVPF 121 125 126 127 97 98 99 100 120 124 123 122 119
c=IN IP4 0.0.0.0
a=inactive
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=fmtp:100 apt=99
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:119 apt=122
a=ice-pwd:96d7ecc4a8b254c476db179c84e0bd20
a=ice-ufrag:51995e37
a=mid:1
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-fb:99 nack
a=rtcp-fb:99 nack pli
a=rtcp-fb:99 ccm fir
a=rtcp-fb:99 goog-remb
a=rtcp-fb:99 transport-cc
a=rtcp-fb:123 nack
a=rtcp-fb:123 nack pli
a=rtcp-fb:123 ccm fir
a=rtcp-fb:123 goog-remb
a=rtcp-fb:123 transport-cc
a=rtcp-fb:122 nack
a=rtcp-fb:122 nack pli
a=rtcp-fb:122 ccm fir
a=rtcp-fb:122 goog-remb
a=rtcp-fb:122 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=rtpmap:99 AV1/90000
a=rtpmap:100 rtx/90000
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:123 ulpfec/90000
a=rtpmap:122 red/90000
a=rtpmap:119 rtx/90000
a=setup:actpass
a=ssrc:3220794461 cname:{1ca2060d-67bc-4aee-a554-1b8c9c2e8e19}