https://retellai.com/?utm_source=discord&utm_medium=seo logo
getting multiple hits from the Retell Agent
# ❓・bug-report
r
We’re getting multiple hits from the Retell Agent on the backend. Instead of getting one hit from Retell we are getting multiple hits including GET requests. It's not just twilio, web calls have the same issue. Anyone else experiencing this? And what is the solution?
n
Can you share what endpoints are getting multiple hits?
r
HTTP POST /api/v1/retellai/twilio-voice-webhook/5e8a6fb1418506fde3c89d1483faed1e 200 [0.56, 172.22.0.5:58442] api-1 | Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/71cbd755e9f844186aa93e4cac195dd7 api-1 | HTTP GET /api/v1/retellai/twilio-voice-webhook/71cbd755e9f844186aa93e4cac195dd7 405 [0.00, 172.22.0.5:58450] api-1 | Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/71cbd755e9f844186aa93e4cac195dd7 api-1 | HTTP GET /api/v1/retellai/twilio-voice-webhook/71cbd755e9f844186aa93e4cac195dd7 405 [0.00, 172.22.0.5:58460] api-1 | Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/71cbd755e9f844186aa93e4cac195dd7 api-1 | HTTP GET /api/v1/retellai/twilio-voice-webhook/71cbd755e9f844186aa93e4cac195dd7 405 [0.00, 172.22.0.5:45448]
POST is correct but there should be no GET request
n
So this looks like a custom LLM setup, and also the twilio-voice-webhook is triggered by Twilio (and not retell). Is it possible that you were testing this endpoint and left some unwanted GET API call in your code?
r
@NJ Yes it's twilio webhook and the setup is custom LLM. However, when I am trying to make a web call directly via retell web UI, it is sending request on Twilio webhook. As per the setup the twilio webhook should not be called on the webUI call?
n
Nope it won't make a call to Twilio. I have a custom LLM based agent setup on retell dashboard and I just placed a webUI call and it did not trigger that API
Can you check by any chance in your handleWebsocket API (the one that retell actually triggers), are you placing any calls to the twilio webhook? Because I don't see another way this can happen
r
Just one question, Can I have an agent that is configured to handle twilio call and also handles the web call ?
n
Yup sure! Your custom LLM will have 2 endpoints (as you can see in the github repos). One endpoint is a webhook to be used by Twilio and the other is the LLM websocket that retell connects to
r
yes, That is the same setup that we've done. yesterday it worked for 1 or 2 times while i was troubleshooting, and post that I again started getting this GET requests on my twilio end points. and socket there is no API calls that I am doing.
n
Not fully sure what could be a problem. @Weijia - Support@Retell any idea here?
r
Bit more details I just tried with the older working version that we tested 3 days ago. which was working perfectly fine with this setup. But now getting the same error again
Copy code
HTTP POST /api/v1/retellai/twilio-voice-webhook/06f2527d0f20b48d2036d02dba584548 200 [0.18, 172.20.0.5:36668]
api-1    | Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/1e6cccbcba113630548e5cca7966cdf3
api-1    | HTTP GET /api/v1/retellai/twilio-voice-webhook/1e6cccbcba113630548e5cca7966cdf3 405 [0.01, 172.20.0.5:36672]
api-1    | Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/1e6cccbcba113630548e5cca7966cdf3
api-1    | HTTP GET /api/v1/retellai/twilio-voice-webhook/1e6cccbcba113630548e5cca7966cdf3 405 [0.01, 172.20.0.5:39442]
api-1    | Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/1e6cccbcba113630548e5cca7966cdf3
api-1    | HTTP GET /api/v1/retellai/twilio-voice-webhook/1e6cccbcba113630548e5cca7966cdf3 405 [0.01, 172.20.0.5:39456]
r
Any thoughts/help here from Retell suport?
@Todd - Cofounder@Retell AI @retellai ??
t
hey
I just tried current custom LLM depo repo. It seems to be ok
what is your custom LLM url?
r
@rajendrasinh pls confirm but I beleive that is correct.
r
Yes that's correct
This is the current llm end point
@Todd - Cofounder@Retell AI By any chance that http url can cause the issue ? current deployed setup on the above URL is not https at the moment?
@Todd - Cofounder@Retell AI I've just tried the deployed agent again for Web call without the twilio integration this time. Following are the hits that I am getting
Copy code
Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/034210e68c9147b7676741fdf6aa8687
HTTP GET /api/v1/retellai/twilio-voice-webhook/034210e68c9147b7676741fdf6aa8687 405 [0.02, 172.20.0.5:57290]
Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/034210e68c9147b7676741fdf6aa8687
HTTP GET /api/v1/retellai/twilio-voice-webhook/034210e68c9147b7676741fdf6aa8687 405 [0.01, 172.20.0.5:37108]
Method Not Allowed: /api/v1/retellai/twilio-voice-webhook/034210e68c9147b7676741fdf6aa8687
HTTP GET /api/v1/retellai/twilio-voice-webhook/034210e68c9147b7676741fdf6aa8687 405 [0.02, 172.20.0.5:37118]
Retell AgentID: 06f2527d0f20b48d2036d02dba584548 call type: Web It's still sending a hit on my twilio webhook. should that be the case?
t
Could you change from twilio-voice-webhook to llm-websocket
r
oh I see let me check that
t
twilio-voice-webhook is for twilio to hit llm-websocket is for retell to hit
r
I this that's causing the issue with calls. Let me check and confirm the fix
@Todd - Cofounder@Retell AI Thank you so much for the response and that did solve the issue for us.
r
Thanks @Todd - Cofounder@Retell AI !
t
No problem! Feel free to let me know if you have any questions!