https://retellai.com/?utm_source=discord&utm_medium=seo logo
High latency on single prompts
# ❓・bug-report
s
My team and I are using single prompt agents, and for some reason they are unresponsive even when speaking clearly and loudly into the microphone. We are maximizing this feature. We are paying hundreds of dollars and we have this problem all the time.
o
Hello @sebastiano_50720 , can you share the call details logs for this call ?
and what are you using in LLM , voice provider?
s
let me check that for you, give me a few minutes
we are sarching them with my team as we call a lot
o
So this only happened in couple of calls or in specific time period not all of calls ?
If you can also give me the time period this happend
s
it happens very frequently, not every day but is very common
yea give me a few minutes
GPT5-FAST TIER
@Omar Ashraf | Community Lead
o
Hey, I'm going to let the team know about this .
Is this still happening ?
and what voice provider are you using ?
and do you have fallback voice in place?
s
The voice provider is : 11labs cimo
11Labs katherine
those two
@Omar Ashraf | Community Lead
it seems to be better now
idk what this fallback voice is, I am going to look into it
o
That is good to hear, let me know if it happened again
for the voice fall back you can use this
s
So we are having a different issue now, we do not have latency but now the voice is fading, internally looks like this. @Omar Ashraf | Community Lead https://cdn.discordapp.com/attachments/1423362157281677386/1423416126582558770/public_1.log?ex=68e03b12&is=68dee992&hm=59ae8bb3aeb952a331ac8e9d2b1e90feac9bab61f72747994683a4d3f8e0f45a&
chatgpt told us this: Short version: your webhook endpoint is crashing. Every time the platform triggers the webhook (
call_started
,
call_ended
,
call_analyzed
), your server returns HTTP 500 and Axios reports
ERR_BAD_RESPONSE
. The response body includes
"'metadata'"
, which is the classic signature of a **KeyError / missing field**—your handler is trying to read
payload["metadata"]
(or equivalent) when that key isn’t present, so the server throws and replies 500. MDN defines 500 as a server-side failure; Axios surfaces it as
ERR_BAD_RESPONSE
. ([MDN Web Docs][1]) ### What the log shows *
Error triggering webhook … status: 500
with
["Internal server error","'metadata'"]
→ your code tried to access a missing key (likely Python/Node-esque dict/object access). In Python, a missing dict key raises KeyError and the message prints the key in quotes (
'metadata'
). ([Real Python][2]) ### Why this happens (in plain English) * The webhook payload sometimes doesn’t include
metadata
, or your handler is looking for it in the wrong place. Your code doesn’t guard for absence, so it throws and returns 500. 500 is a generic “server encountered an unexpected condition” response. ([MDN Web Docs][3])
i
I’ve had similar issue, where I needed to repeat myself. It’s always on the second prompt that this happens with my agent. Same problem with different global prompt chat/claude