https://retellai.com/?utm_source=discord&utm_medium=seo logo
Webhook signature fails verification
# ❓・bug-report
v
In some of our calls the webhook signature verification fails and we are not able to post-process the call, which is very important for one of our use cases. E.g. call id d18af7cbdfa5f453a01e803dddeac279. We use exactly the same code as in the demo python repo here: https://github.com/RetellAI/retell-custom-llm-python-demo/blob/7f4fcf11d4ea805b13c77a20f1384c7eb6971ec1/app/server.py#L36 Any idea what could be going wrong here or how to debug? There is not too much troubleshooting info in the documentation here: https://docs.retellai.com/features/webhook
Any ideas here? This keeps happening..
n
I tried reproducing this, but I think this might have in some specific case. Its a bit difficult to reproduce the issue locally for me. cc: @Weijia - Support@Retell or @Zexia - Retell AI any ideas guys?
v
Same here, difficult to reproduce since it seems a bit random, so I am mostly looking for tips on how to debug
c
We were getting this ocasionally, but now it's happening for all non "call_started" events when testing locally. My ngrok is spitting out "307 Temporary Redirect", not sure if related
@vtshitoyan do you have any special characters in your transcript? I managed to reproduce the error consistently when I ask the agent to say a word with an spanish accent (e.g. Buendía)
Adding
ensure_ascii=False
to the JSON dump seems to fix the issue. But maybe it creates other ones? We need confirmation that the verification won't break
v
Interesting find, thanks for this. We generally do not, but there might be some other special characters that appear in the transcript at times that cause issues. I will investigate!
n
Close this thread for now. Can follow for updates here: https://discord.com/channels/1186424376300679209/1260323789867061339 cc: @vtshitoyan @cuarzo7115