https://retellai.com/?utm_source=discord&utm_medium=seo logo
Call getting cut off
# ❓・bug-report
s
"error trying to re-publish tracks after reconnection" {"room":"web_call_1ad0756851d0238fc0c1ebe5fd4","roomID":"RM_u43ddnxMAskA","participant":"client","pID":"PA_BwRyQxz444V2","error":"ConnectionError: publication of local track timed out, no response from server\n at https://app.getsymphony.co/_next/static/chunks/144d3bae-194c8fc0c8004646.js:1:231911\n at n (https://app.getsymphony.co/_next/static/chunks/7195-4c888a2cbe014e88.js:10:4465)\nEnd of stack for Error object"} for call id call_1ad0756851d0238fc0c1ebe5fd4 The user experience was that it seemed like the call got cut off. Any ideas?
cc @Omar Ashraf | Community Lead looks like it happened a few times today
also saw this in the user session: "Received leave request while trying to (re)connect" {"room":"web_call_1ad0756851d0238fc0c1ebe5fd4","roomID":"","participant":"client","pID":"PA_noTCZFsYmKEx","error":"ConnectionError: Received leave request while trying to (re)connect\n at sC. (https://app.getsymphony.co/_next/static/chunks/144d3bae-194c8fc0c8004646.js:1:159408)\n at Generator.next ()\n at https://app.getsymphony.co/_next/static/chunks/144d3bae-194c8fc0c8004646.js:1:67279\n at new Promise ()\n at nm (https://app.getsymphony.co/_next/static/chunks/144d3bae-194c8fc0c8004646.js:1:67028)\n at ws.onmessage (https://app.getsymphony.co/_next/static/chunks/144d3bae-194c8fc0c8004646.js:1:158151)\nEnd of stack for Error object"} does that tell you anything?
s
You faced this problem just today, right?
s
Yes looks like it started today @shahretell
s
how many times you face this issue
s
maybe 10-15 times today
It's hard to get exact number but multiple users have mentioned it
s
The errors you’re seeing (publication of local track timed out, addIceCandidate, and leave while reconnecting) are coming from the LiveKit SDK itself during reconnection, not from Retell’s side. Retell just passes through those SDK events. This typically happens when the SDK fails to re-publish tracks after a network hiccup. The fix is usually upgrading to the latest LiveKit SDK (they’ve patched reconnection logic in recent versions) or handling reconnects by unpublishing and re-publishing tracks cleanly.
s
I'm not importing the livekit sdk; I'm using your sdk. Do you think upgrading to the latest retell frontend sdk would make a difference? I'm currently on 2.0.5 retell client sdk
@shahretell
hey @shahretell what's the right way to update livekit version? we haven't imported it at all, we're just using the retell client sdk.
s
The Retell frontend SDK bundles LiveKit under the hood, so you don’t import LiveKit directly in your app. When you upgrade your Retell SDK, you’re also pulling in the LiveKit version we ship with. upgrading your Retell client SDK (you’re on 2.0.5) is the correct way to update the underlying LiveKit version.
s
@shehroze_retell bumping retell client sdk version isn't bumping the livekit version. So i don't think the issue will be resolved by upgrading livekit sdk.
any ideas what could have caused this?
s
Those errors (setRemoteDescription / addIceCandidate) just mean the browser is still getting WebRTC signaling after the call already closed. It usually happens if: The client got a leave while still trying to reconnect. Or you have two client instances fighting. They’re side-effects, not the root bug. The main issue is the earlier “Received leave request while trying to (re)connect”. Fix the lifecycle (only one client, clean leave(), let reconnect finish), and these red console errors will disappear.