Discussions

Ask a Question
Back to All

Getting SessionError

we are getting sessionError while trying to connect https://api.d-id.com/talks/streams/{id}/sdp. We have used identical session_id, sdp and id but we keep getting session error. I have removed basic auth header (FYI)

curl --request POST  
     --url <https://api.d-id.com/talks/streams/strm_1OEz9k6_x7zf7yZqhfi6F_EKS/sdp>  
     --header 'accept: application/json'  
     --header 'content-type: application/json'  
     --data '  
{  
  "answer": {  
    "type": "answer",  
    "sdp": "v=0\\r\\no=- 1746647231862412 1 IN IP4 54.201.69.73\\r\\ns=Mountpoint 2442542979435520\\r\\nt=0 0\\r\\na=group:BUNDLE a v d\\r\\na=ice-options:trickle\\r\\na=fingerprint:sha-256 DC:83:76:06:F3:C3:40:E1:FC:15:BA:89:AD:62:F2:8A:7D:BE:B1:23:E4:43:02:20:06:E7:0A:6B:1B:5E:AB:AF\\r\\na=extmap-allow-mixed\\r\\na=msid-semantic: WMS \*\\r\\nm=audio 9 UDP/TLS/RTP/SAVPF 111\\r\\nc=IN IP4 54.201.69.73\\r\\na=sendonly\\r\\na=mid:a\\r\\na=rtcp-mux\\r\\na=ice-ufrag:tLCm\\r\\na=ice-pwd:icBW/R54+W8Clap/RbQSxh\\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:2945583663 cname:janus\\r\\na=candidate:1 1 udp 2015363327 54.201.69.73 38486 typ host\\r\\na=candidate:2 1 udp 2015363583 54.201.69.73 31816 typ host\\r\\na=end-of-candidates\\r\\nm=video 9 UDP/TLS/RTP/SAVPF 102 103\\r\\nc=IN IP4 54.201.69.73\\r\\na=sendonly\\r\\na=mid:v\\r\\na=rtcp-mux\\r\\na=ice-ufrag:tLCm\\r\\na=ice-pwd:icBW/R54+W8Clap/RbQSxh\\r\\na=ice-options:trickle\\r\\na=setup:actpass\\r\\na=rtpmap:102 H264/90000\\r\\na=rtcp-fb:102 ccm fir\\r\\na=rtcp-fb:102 nack\\r\\na=rtcp-fb:102 nack pli\\r\\na=rtcp-fb:102 goog-remb\\r\\na=rtcp-fb:102 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:103 rtx/90000\\r\\na=fmtp:103 apt=102\\r\\na=ssrc-group:FID 3251904080 617363756\\r\\na=msid:janus janusv\\r\\na=ssrc:3251904080 cname:janus\\r\\na=ssrc:617363756 cname:janus\\r\\na=candidate:1 1 udp 2015363327 54.201.69.73 38486 typ host\\r\\na=candidate:2 1 udp 2015363583 54.201.69.73 31816 typ host\\r\\na=end-of-candidates\\r\\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\\r\\nc=IN IP4 54.201.69.73\\r\\na=sendrecv\\r\\na=mid:d\\r\\na=sctp-port:5000\\r\\na=ice-ufrag:tLCm\\r\\na=ice-pwd:icBW/R54+W8Clap/RbQSxh\\r\\na=ice-options:trickle\\r\\na=setup:actpass\\r\\na=candidate:1 1 udp 2015363327 54.201.69.73 38486 typ host\\r\\na=candidate:2 1 udp 2015363583 54.201.69.73 31816 typ host\\r\\na=end-of-candidates\\r\\n"  
  },  
  "session_id": "AWSALB=5x3H3J1KgjsbpETbdGRA8QG6xaT1h+C5DtnroCosuhaRFCETH8Wo8HTKzodpcz0EyV5XGuaMgALAFW9UNa3h1DR6sncXuGohYIBfxVK+yGmeki93I2Cmjm/TvjvU; Expires=Wed, 14 May 2025 19:47:11 GMT; Path=/; AWSALBCORS=5x3H3J1KgjsbpETbdGRA8QG6xaT1h+C5DtnroCosuhaRFCETH8Wo8HTKzodpcz0EyV5XGuaMgALAFW9UNa3h1DR6sncXuGohYIBfxVK+yGmeki93I2Cmjm/TvjvU; Expires=Wed, 14 May 2025 19:47:11 GMT; Path=/; SameSite=None; Secure"  
}

Response we received

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

Please let us know what should we do to fix this?