question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

peerConnection-SetLocalDescriptionFailed

See original GitHub issue

What up all - seeing some indicators there might still be a bit of wonkiness around the session description handler.

v0.14.1

Using sessionDescriptionHandlerFactoryOptions:

2019-05-25T20:14:17.604Z sip.invitecontext.sessionDescriptionHandler.log SessionDescriptionHandlerOptions: {"constraints":{"audio":true,"video":false}}
2019-05-25T20:14:17.604Z sip.invitecontext.sessionDescriptionHandler.log initPeerConnection
2019-05-25T20:14:17.606Z sip.invitecontext.sessionDescriptionHandler.log New peer connection created
2019-05-25T20:14:17.611Z sip.invitecontext.sessionDescriptionHandler.log track added
2019-05-25T20:14:17.621Z sip.invitecontext.sessionDescriptionHandler.log acquiring local media
2019-05-25T20:14:17.631Z sip.invitecontext.sessionDescriptionHandler.log acquired local media streams
2019-05-25T20:14:17.636Z sip.invitecontext.sessionDescriptionHandler.log createAnswer
2019-05-25T20:14:17.640Z sip.invitecontext.sessionDescriptionHandler.log resetIceGatheringComplete
2019-05-25T20:14:17.640Z sip.invitecontext.sessionDescriptionHandler.log Setting local sdp.
2019-05-25T20:14:17.640Z sip.invitecontext.sessionDescriptionHandler.log sdp is v=0
 o=- 9210188946595856521 2 IN IP4 127.0.0.1
 s=-
 t=0 0
 a=msid-semantic: WMS QNIYg33HRQ8JpA6wrcqZMy4eNx7q4brSwAXD
 m=audio 9 UDP/TLS/RTP/SAVPF 111 110
 c=IN IP4 0.0.0.0
 a=rtcp:9 IN IP4 0.0.0.0
 a=ice-ufrag:SpOB
 a=ice-pwd:ZwAlrPpLCAeqN4NfYkmjeOaM
 a=ice-options:trickle
 a=fingerprint:sha-256 7C:6B:31:59:63:7C:22:8F:D1:64:5C:FF:71:D3:73:79:18:6C:DB:0C:A3:7E:D4:BD:6E:66:8C:BB:77:DB:E7:FD
 a=setup:active
 a=mid:0
 a=sendrecv
 a=rtcp-mux
 a=rtpmap:111 opus/48000/2
 a=fmtp:111 minptime=10;useinbandfec=1
 a=rtpmap:110 telephone-event/48000
 a=ssrc:2221167548 cname:39s4VcGxCn8ATx11
 a=ssrc:2221167548 msid:QNIYg33HRQ8JpA6wrcqZMy4eNx7q4brSwAXD 531ebcca-4e5f-4a8f-9ae2-a5de016e0cc3
 a=ssrc:2221167548 mslabel:QNIYg33HRQ8JpA6wrcqZMy4eNx7q4brSwAXD
 a=ssrc:2221167548 label:531ebcca-4e5f-4a8f-9ae2-a5de016e0cc3
2019-05-25T20:14:17.646Z sip.inviteclientcontext.warn invalid description
2019-05-25T20:14:17.646Z sip.inviteclientcontext.warn SESSION_DESCRIPTION_HANDLER_ERROR: peerConnection-SetLocalDescriptionFailed

Using useragent.invite() options:

2019-05-25T20:17:30.183Z sip.invitecontext.sessionDescriptionHandler.log SessionDescriptionHandlerOptions: {"constraints":{},"peerConnectionOptions":{"iceCheckingTimeout":5000,"rtcConfiguration":{"iceServers":[{"urls":"stun:stun.l.google.com:19302"}]}}}
2019-05-25T20:17:30.183Z sip.invitecontext.sessionDescriptionHandler.log initPeerConnection
2019-05-25T20:17:30.184Z sip.invitecontext.sessionDescriptionHandler.log New peer connection created
2019-05-25T20:17:30.192Z sip.invitecontext.sessionDescriptionHandler.log track added
2019-05-25T20:17:30.200Z sip.invitecontext.sessionDescriptionHandler.log acquiring local media
2019-05-25T20:17:30.210Z sip.invitecontext.sessionDescriptionHandler.log acquired local media streams
2019-05-25T20:17:30.214Z sip.invitecontext.sessionDescriptionHandler.log createAnswer
2019-05-25T20:17:30.218Z sip.invitecontext.sessionDescriptionHandler.log resetIceGatheringComplete
2019-05-25T20:17:30.218Z sip.invitecontext.sessionDescriptionHandler.log Setting local sdp.
2019-05-25T20:17:30.218Z sip.invitecontext.sessionDescriptionHandler.log sdp is v=0
 o=- 4018418770863262994 2 IN IP4 127.0.0.1
 s=-
 t=0 0
 a=msid-semantic: WMS vhMuIHlseFPTB0ruJk5JbZv3Gl0XUVqcGL2t
 m=audio 9 UDP/TLS/RTP/SAVPF 111 110
 c=IN IP4 0.0.0.0
 a=rtcp:9 IN IP4 0.0.0.0
 a=ice-ufrag:gh4I
 a=ice-pwd:WSI+0v9zV8qT9MJ3DYCkv3l+
 a=ice-options:trickle
 a=fingerprint:sha-256 CF:14:B8:63:C0:6C:26:24:32:44:24:F3:C3:97:26:19:7E:D1:6E:BA:C5:5E:D3:5A:41:A5:A6:F7:C0:33:EE:95
 a=setup:active
 a=mid:0
 a=sendrecv
 a=rtcp-mux
 a=rtpmap:111 opus/48000/2
 a=fmtp:111 minptime=10;useinbandfec=1
 a=rtpmap:110 telephone-event/48000
 a=ssrc:3095392160 cname:0E3Qtb+eRrfPgKIr
 a=ssrc:3095392160 msid:vhMuIHlseFPTB0ruJk5JbZv3Gl0XUVqcGL2t 022a12b7-b535-4e65-902b-c2121b6fb378
 a=ssrc:3095392160 mslabel:vhMuIHlseFPTB0ruJk5JbZv3Gl0XUVqcGL2t
 a=ssrc:3095392160 label:022a12b7-b535-4e65-902b-c2121b6fb378
2019-05-25T20:17:30.225Z sip.inviteclientcontext.warn invalid description
2019-05-25T20:17:30.225Z sip.inviteclientcontext.warn SESSION_DESCRIPTION_HANDLER_ERROR: peerConnection-SetLocalDescriptionFailed

Not really sure what to make of it, I mean I guess the dash in the originator SDP field is an odd thing? Not positive, but pretty sure that wasn’t there before.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
james-criscuolocommented, Jun 7, 2019

Sorry this auto-closed, I’m building a release now, so I hope you’ll be able to test in 0.14.4 shortly.

0reactions
james-criscuolocommented, Jun 10, 2019

Great, glad to see it worked, thanks again for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'setLocalDescription' on 'RTCPeerConnection
The pc inside createPeerConnection() appears to be an entirely different peer connection than pc the rest of your code is using, so I'm...
Read more >
Failed to execute 'setLocalDescription' on 'RTCPeerConnection'
WebRTC error: DOMException: Failed to execute 'createAnswer' on 'RTCPeerConnection': PeerConnection cannot create an answer in a state other ...
Read more >
RTCPeerConnection.setLocalDescription() - Web APIs | MDN
A Promise which is fulfilled once the value of RTCPeerConnection.localDescription is successfully changed or rejected if the change cannot be ...
Read more >
Error Failed to execute 'createOffer' on 'RTCPeerConnection
Click start screen sharing; Stop screen sharing; It is expected to see setLocalDescription error in chrome://webrtc-internals/ , but it doesn't ...
Read more >
1358 - Crash on PeerConnection::SetLocalDescription - webrtc
1. Call SetLocalDescription in the PeerConnectionObserver::OnSuccess impl. What is the expected result? Success or fail.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found