clever_arpit
CDCloudflare Developers
•Created by clever_arpit on 1/22/2025 in #general-help
Trying to renegotiate in Cloudflare calls API
I'm trying to renegotiate with api
const renegotiateResponse = await fetch(
${API_BASE}/sessions/${remoteSessionId}/renegotiate
,
{
method: "PUT",
headers,
body: JSON.stringify({
sessionDescription: {
sdp: remoteAnswer.sdp,
type: "answer",
},
}),
}
).then((res) => res.json());
But getting {} this kind of response. What could be wrong with my code or backend side. Anyone can help me out in this?1 replies