https://retellai.com/?utm_source=discord&utm_medium=seo logo
Error triggering webhook for call_ended
# ❓・bug-report
s
I tried creating different assistants and updating old ones and the issue persists. The phone number is from Retell, the agent has been created via the Retell dashboard. Webhook URL is empty. Agent ID: 04b3b4246f79c9cf26239111086f01d2 Here is the error I'm getting: 2024-08-12 22:24:19.130 info: Ending call: 668bccd9cfeba7b141b34a46938a0d52 2024-08-12 22:24:19.138 info: LLM ws closed: 1000 Closing ws as requested. 2024-08-12 22:24:22.593 error: Error triggering webhook for call_ended: Failed to parse URL from TypeError: Failed to parse URL from at node:internal/deps/undici/undici:13178:13 at async sendWebhook (file:///usr/src/app/dist/api_util.js:418:22) at async file:///usr/src/app/dist/api_util.js:432:46 at async retryOperation (file:///usr/src/app/dist/api_util.js:854:20) at async webhookRetry (file:///usr/src/app/dist/api_util.js:432:13) at async TriggerWebhook (file:///usr/src/app/dist/api_util.js:446:13) at async Promise.all (index 0) at async OrchestratorShutDown (file:///usr/src/app/dist/audio_webrtc.js:73:5) at async ChildProcess. (file:///usr/src/app/dist/audio_webrtc.js:203:13) { [cause]: TypeError: Invalid URL at new URL (node:internal/url:797:36) at new Request (node:internal/deps/undici/undici:9269:25) at fetch
Rest of the error; (node:internal/deps/undici/undici:9998:25) at fetch (node:internal/deps/undici/undici:13176:10) at fetch (node:internal/bootstrap/web/exposed-window-or-worker:72:12) at sendWebhook (file:///usr/src/app/dist/api_util.js:418:28) at file:///usr/src/app/dist/api_util.js:432:52 at retryOperation (file:///usr/src/app/dist/api_util.js:854:26) at async webhookRetry (file:///usr/src/app/dist/api_util.js:432:13) at async TriggerWebhook (file:///usr/src/app/dist/api_util.js:446:13) { code: 'ERR_INVALID_URL', input: '' } } 2024-08-12 22:24:24.228 error: Error triggering webhook for call_analyzed: Failed to parse URL from TypeError: Failed to parse URL from at node:internal/deps/undici/undici:13178:13 at async sendWebhook (file:///usr/src/app/dist/api_util.js:418:22) at async file:///usr/src/app/dist/api_util.js:432:46 at async retryOperation (file:///usr/src/app/dist/api_util.js:854:20) at async webhookRetry (file:///usr/src/app/dist/api_util.js:432:13) at async TriggerWebhook (file:///usr/src/app/dist/api_util.js:446:13) at async Promise.all (index 1) at async OrchestratorShutDown (file:///usr/src/app/dist/audio_webrtc.js:73:5) at async ChildProcess. (file:///usr/src/app/dist/audio_webrtc.js:203:13) { [cause]: TypeError: Invalid URL at new URL (node:internal/url:797:36) at new Request (node:internal/deps/undici/undici:9269:25) at fetch (node:internal/deps/undici/undici:9998:25) at fetch (node:internal/deps/undici/undici:13176:10) at fetch (node:internal/bootstrap/web/exposed-window-or-worker:72:12) at sendWebhook (file:///usr/src/app/dist/api_util.js:418:28)
at file:///usr/src/app/dist/api_util.js:432:52 at retryOperation (file:///usr/src/app/dist/api_util.js:854:26) at async webhookRetry (file:///usr/src/app/dist/api_util.js:432:13) at async TriggerWebhook (file:///usr/src/app/dist/api_util.js:446:13) { code: 'ERR_INVALID_URL', input: '' } }
I also tried creating the custom llm via api, and then connecting this via my own agent in the dashboard. The issue still persists.
@retellai I saw this issue occurred for one of the other users in May -- can you please look into it? I have no idea what's causing it. Can this be because the prompt is too long?
@NJ @Zexia - Retell AI could you please help in looking into that?
Right now it doesn't even show any error in the logs and just hangs up
n
So the original logs that you posted, it looks like you have an invalid URL. Can you share the webhook url that you are using? - agent level and account level?
For this, are you expecting a webhook url to be called? What is the issue?
s
I'm not using any webhook URLs, which is why it's weird
Right now it doesn't throw any errors, it just hangs up as attached here
n
So is that a problem? Like what's the expected behaviour