https://retellai.com/?utm_source=discord&utm_medium=seo logo
can't get inbound webhook to work anymore
# ❓・bug-report
t
I keep getting errors
Copy code
Jul 30 14:32:40 ip-172-31-3-158 bash[2292]: HTTP response body: {"status":"error","message":"Object not found.  objectId are usually numeric.","correlationId":"782174c8-a2fa-4c44-9a80-2aac412bb06f","context":{"id":["None"]},"category":"OBJECT_NOT_FOUND"}
Jul 30 14:32:40 ip-172-31-3-158 bash[2292]: INFO:     100.20.5.228:0 - "POST /api/outbound/write_crm HTTP/1.1" 500 Internal Server Error


]: HTTP response body: {"status":"error","message":"Object not found.  objectId are usually numeric.","correlationId":"8c79053d-a3ad-406a-a8d3-d7870b654aa9","context":{"id":["None"]},"category":"OBJECT_NOT_FOUND"}
Jul 30 14:32:39 ip-172-31-3-158 bash[2292]: INFO:     100.20.5.228:0 - "POST /api/outbound/write_crm HTTP/1.1" 500 Internal Server Error
Jul 30 14:32:40 ip-172-31-3-158 bash[2292]: Error in webhook: (404)
Jul 30 14:32:40 ip-172-31-3-158 bash[2292]: Reason: Not Found
I have had a web hook working for quite a wwhile but it seems when I try and call my inbound now it just errors out trying to reach it to grab dynamic variables
my outbound works fine
like it doesnt work right here because the inbound isnt passing the dynamic variables
o
can you try another webhook for the inbound so we can know if the problem from the webhook backend or our side.
t
so like a new inbound webhook? I wrote the webhook myself
my outbound works when i do an outbound call, it's the inbound that has an issue
I jsut noticed this, this seems like a new button
o
so you didn't have your webhook at the agent ?
t
I added it i still get this
o
it looks your webhook have a problem i can give you mine to try if the problem still happens then I'm going to send it to the team, send you my webhook ?
t
yea pls
o
try again , one more time
it should work
t
didnt supply a name
as inbound ?
o
yeah , the first one have didn't edit my webhook , that's why i told you to do it again
t
hmm why isnt mine working :S my outbound works
o
i think you have something wrong on the logic not sure what.
t
I did a curl it recieving data but it says no numbers found
o
i see in your code you throw this error except Exception as e: print(f"Error in inbound_dynamic_variables: {e}") raise HTTPException(status_code=500, detail="Internal Server Error") , so it must something happen in your code to throw this error.
t
u see where it changes from number from the phone number to the word "from number"
has there been an update to inbound api in last few months? @Omar Ashraf | Community Lead
I just fixed it
o
it looks you trying to get the variables from the top level , but it's inside an object you can't access it.
Great.
t
Thanks for your help