Discussions

Ask a Question
Back to All

Session Error with Step 2 of initialising a live Stream, "missing or invalid session_id"

Hi D-ID Support,

would very much appreciate your help. Am trying to create a live stream and am following the steps on your website but always fail at step 2. "SDP OFFER"

In step 1. I get this as a return:

id: "strm_Hd20OYeuttnLpRTsj6RVx"

"sdp": "v=0\r\no=- 1693818887081898 1 IN IP4 34.211.224.78\r\ns=Mountpoint 7454417524438767\r\nt=0 0\r\na=group:BUNDLE a v d\r\na=ice-options:trickle\r\na=fingerprint:sha-256 6F:4A:A5:41:C8:48:D8:8B:0D:FA:53:E8:FA:8A:19:28:A3:74:7C:2C:DD:DA:67:44:88:5E:18:48:F2:9E:D9:30\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS *\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 34.211.224.78\r\na=sendonly\r\na=mid:a\r\na=rtcp-mux\r\na=ice-ufrag:nYjY\r\na=ice-pwd:Utv+cwEvXzunBsKwQPGkls\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=msid:janus janusa\r\na=ssrc:1498796840 cname:janus\r\na=candidate:1 1 udp 2015363327 34.211.224.78 55972 typ host\r\na=candidate:2 1 udp 1679819007 34.211.224.78 55972 typ srflx raddr 172.18.0.4 rport 55972\r\na=end-of-candidates\r\nm=video 9 UDP/TLS/RTP/SAVPF 100 101\r\nc=IN IP4 34.211.224.78\r\na=sendonly\r\na=mid:v\r\na=rtcp-mux\r\na=ice-ufrag:nYjY\r\na=ice-pwd:Utv+cwEvXzunBsKwQPGkls\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:100 VP8/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=ssrc-group:FID 3475504853 2968446245\r\na=msid:janus janusv\r\na=ssrc:3475504853 cname:janus\r\na=ssrc:2968446245 cname:janus\r\na=candidate:1 1 udp 2015363327 34.211.224.78 55972 typ host\r\na=candidate:2 1 udp 1679819007 34.211.224.78 55972 typ srflx raddr 172.18.0.4 rport 55972\r\na=end-of-candidates\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 34.211.224.78\r\na=sendrecv\r\na=mid:d\r\na=sctp-port:5000\r\na=ice-ufrag:nYjY\r\na=ice-pwd:Utv+cwEvXzunBsKwQPGkls\r\na=ice-options:trickle\r\na=setup:actpass\r\na=candidate:1 1 udp 2015363327 34.211.224.78 55972 typ host\r\na=candidate:2 1 udp 1679819007 34.211.224.78 55972 typ srflx raddr 172.18.0.4 rport 55972\r\na=end-of-candidates\r\n"

Is this whole block the sdp string that I should input in step 2.

session id : "session_id": "AWSALB=OEwCuJQyXYSx2YkT2UPlO93s1j1bkNzEb9h01ULavyjwRBUuSOGZzROCpUENXtQFu7Z4vQhkaOmloKoyE6EiC6Wq+4MgJ9VE0eMD6kbK3DFI1Zk34jCbD40F6T2M; Expires=Mon, 11 Sep 2023 09:14:47 GMT; Path=/; AWSALBCORS=OEwCuJQyXYSx2YkT2UPlO93s1j1bkNzEb9h01ULavyjwRBUuSOGZzROCpUENXtQFu7Z4vQhkaOmloKoyE6EiC6Wq+4MgJ9VE0eMD6kbK3DFI1Zk34jCbD40F6T2M; Expires=Mon, 11 Sep 2023 09:14:47 GMT; Path=/; SameSite=None; Secure"

Again ist the whole block the session id? When I put both in I get this as a reply:

{
"kind": "SessionError",
"description": "missing or invalid session_id"
}

Am not a very experienced programmer but would be ver grateful for a reply,

kind regards,

Robin