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.

SessionDescription is NULL.

See original GitHub issue

I’m currently trying to setup a RTCPeerConnection between a server and my react native client. However when I set the remote description it fails with this error message:

{
    name: 'SetRemoteDescriptionFailed',
    message: 'SessionDescription is NULL.'
}

Code

const peer = new RTCPeerConnection({ iceServers: [...] })
const localOffer = await peer.createOffer();
await peer.setLocalDescription(localOffer);
// send local offer to server
// got sdp from server:
await peer.setRemoteDescription(new RTCSessionDescription({ sdp: sdp + "\n", type: "offer" }));

I have seen the duplicate issue #538 and tried adding \n at the end without success.

SDP

m=audio 50009 ICE/SDP
a=fingerprint:sha-256 4A:79:94:16:44:3F:BD:05:41:5A:C7:20:F3:12:54:70:00:73:5D:33:00:2D:2C:80:9B:39:E1:9F:2D:A7:49:87
c=IN IP4 109.200.198.210
a=rtcp:50009
a=ice-ufrag:n+TW
a=ice-pwd:wzVglE/Kni4AIslkP7XUOE
a=fingerprint:sha-256 4A:79:94:16:44:3F:BD:05:41:5A:C7:20:F3:12:54:70:00:73:5D:33:00:2D:2C:80:9B:39:E1:9F:2D:A7:49:87
a=candidate:1 1 UDP 4261412862 109.200.198.210 50009 typ host

I’m not sure if this is a bug or an issue on my side, but I’m glad for any help. Many thanks in advance and for taking the time to read this.

Platform information

  • React Native version: 0.66.4
  • Plugin version: 1.94.1
  • OS: iOS 15.1.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Azamatjoncommented, Sep 14, 2022

@saghul Will share after some investigation 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

SessionDescription is Null. in web rtc after updating Chrome ...
The issue is caused by Chrome enabling extmap-allow-mixed by default (see https://www.chromestatus.com/features#offerExtmapAllowMixed).
Read more >
Session description is NULL - Install & Config
Hi, I've got a problem when trying to set a remote description. I get SessionDescription is Null exception. I am 100% positive that...
Read more >
iOS Latest framework issue: SessionDescription is NULL.
On iOS latest webRTC checkout code framework output, we are getting error on calling "setLocalDescription" API with error message "Error Domain=org.webrtc.
Read more >
[Flutter] - SessionDescription is NULL - mediasoup libraries
Hi everyone, I use mediasoup_client_flutter for flutter app, i'm getting this error when send sdp. Can anyone help me how to fix it....
Read more >
talk/examples/android/src/org/appspot/apprtc ... - Google Git
private SessionDescription localSdp = null; // either offer or answer SDP. private MediaStream videoMediaStream = null;. public PeerConnectionClient(.
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