vapi sees 200 status as error
# support
u
Hi I appear to have a bug. I have a tool that sends a text using a make webhook. According to the vapi log, that webhook is returning code '200 Text sent'. the assistant then tells the caller that there has been a problem. I have tried returning a 204 but it is the same. Do you have any suggestions?
v
@🚀 Christine Hello! It sounds like there might be a discrepancy between the webhook response and the assistant's behavior. To better assist you, I would need to take a closer look at how the assistant is programmed to handle the webhook's response. If the webhook is indeed returning a 200 status code, which generally indicates success, the assistant should not be informing the caller of a problem. It's possible that there's a condition in the assistant's logic that misinterprets the successful response as an error. To resolve this, you should review the assistant's code, particularly the part that handles the webhook response. Ensure that it correctly interprets a 200 or 204 status code as a successful operation and communicates that to the caller. If you're unable to identify the issue in the code, please provide me with more details or the relevant code snippet, and I'll be happy to help you troubleshoot further. If the code is confidential and you can't share it here, you might want to reach out to the support team for more in-depth assistance.
You can continue this conversation by mentioning me in the message.
u
I am using the visual tools so I am not writing code.
does anyone follow these up?
s
Hey @🚀 Christine To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!