SessionDescription is NULL.
See original GitHub issueI’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:
- Created 2 years ago
- Comments:17 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in https://github.com/react-native-webrtc/react-native-webrtc/commit/576e8e877b96f401ca3a85e098fdeb767bb59359
@saghul Will share after some investigation 😉