Tool execution returning "An unexpected error occurred"
We are seeing "An unexpected error occurred." in tool executions, in a call detail, but when debugging the tool execution in our own API (the tool is a webhook to our API), POST was successful.
This is the call:
{
"toolName": "xxxxx-send-to-ringba-sd",
"startTime": "2025-08-13T20:22:30.893Z",
"toolCallId": "call_MIvDSuDIWYBC8WcMSoNh9g57",
"toolResult": "An unexpected error occurred.",
"vapiCallId": "a06ab406-bbd5-46b4-925c-d94ff2ec05ae",
"toolArguments": "{}"
}
Whats happening? Whats that "An unexpected error occurred."? We dont return that error in our API. What failed? Is your system not doing properly the tools that fetch APIs?
This is the call:
{
"toolName": "xxxxx-send-to-ringba-sd",
"startTime": "2025-08-13T20:22:30.893Z",
"toolCallId": "call_MIvDSuDIWYBC8WcMSoNh9g57",
"toolResult": "An unexpected error occurred.",
"vapiCallId": "a06ab406-bbd5-46b4-925c-d94ff2ec05ae",
"toolArguments": "{}"
}
Whats happening? Whats that "An unexpected error occurred."? We dont return that error in our API. What failed? Is your system not doing properly the tools that fetch APIs?