Sahil
03/18/2025, 7:48 AM[ERROR] Your server rejected 'tool-calls' webhook. Error: Request failed with status code 504.
It seems like VAPI isn't waiting for the tool-call response as expected, even though everything is within the timeout limit.
Also, please confirm if I'm using the timeout parameters correctly. Here's how I’m currently setting them:
vapi.start(options, {silenceTimeoutSeconds: 120});
And for the tools config:
tools: {server: {url: "server_url",timeoutSeconds: 120}}
Please let me know if this is the correct way to configure tool-call timeouts or if there’s anything I’m missing. You can refer the call id 650c36fd-796f-4ed4-86d4-da8e4c0dca77
which describs this error.
Thanks,
SahilSahil
03/18/2025, 7:49 AMShubham Bajaj
03/19/2025, 1:41 AMjson
"server": {
"url": "https://axlai.accelnomics.com/api/configuration/webCall/67bdb5d69515b737a53ee869",
"timeoutSeconds": 120
}
Your tool is correctly configured as synchronous ("async": false
) with a 120-second timeout, which should allow enough time for longer-running operations.
## What's Likely Happening
Despite your VAPI configuration being correct with the 120-second timeout, you're still receiving a 504 Gateway Timeout error. This strongly suggests that the timeout is occurring at an infrastructure level, outside of VAPI's control.
There are several possibilities:
1. **Intermediate Proxy/Gateway Timeout**: Your API might be behind a proxy, API gateway, or load balancer that has its own (shorter) timeout setting, likely around 60 seconds.
2. **Cloud Platform Timeout**: If your webhook is hosted on a serverless platform like AWS Lambda, Google Cloud Functions, or Azure Functions, these platforms often have default timeout settings that may need to be increased.
3. **Web Server Timeout**: The web server hosting your webhook might have a default timeout that's lower than 120 seconds.Shubham Bajaj
03/19/2025, 1:43 AMSahil
03/19/2025, 12:00 PMVapi
03/20/2025, 2:33 AMSahil
03/20/2025, 4:28 AMVapi
03/21/2025, 1:37 AMSahil
03/21/2025, 4:41 AM