Empty Toolcall response
# support
i
Hi all, Vapi is constantly giving result not found error in tool call response when the message from make has the the correct format and has the right tool call id 😦
v
Hi there! 👋 I understand you're facing "result not found" errors with Vapi tool calls despite having the correct format and tool call ID. This can be frustrating, but I've found some information that might help! Even when the format and ID seem correct, several issues could cause this error: Common causes: 1. JSON formatting issues - The
result
field must be a single-line string without line breaks [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/1342188078437236916) 2. Nested JSON problems - If your result contains nested JSON, it must be properly escaped as a string [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/1334658296291921920) 3. Synchronous vs. asynchronous handling - The server might prematurely mark synchronous tool calls as failed [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/1342336047589359618) Known bugs that might affect you: - Issues with the SDK not properly relaying tool-calls-result messages [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/1337284665580453969) - Differences in handling between models like
gpt-3.5-turbo
and
gpt-4o-realtime-preview
[(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/1329542939160084624) Try these troubleshooting steps: 1. Double-check your JSON response format:
Copy code
json
{
  "results": [
    {
      "toolCallId": "<your-tool-call-id>",
      "result": "Success message"
    }
  ]
}
2. Check server logs for additional error messages 3. Verify if your tool is configured as synchronous or asynchronous and ensure proper timeout settings 4. Make sure your server returns HTTP status codes in the 200-299 range Let me know if any of these suggestions help or if you need more specific guidance! 🙂 Sources: - [Incorrect Response Format](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775)
v
Hey! 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 us figure out what went wrong!
i
Thanks the above solution solved the problem. sending the response as JSON.dumps fixed it.
v
Message marked as helpful by @Intelli! 🎉
6 Views