andrewboy777
06/12/2026, 11:13 AMtool-calls webhook. Error: socket hang up - but the server GOT the api request and we responded back in 6seconds...so why did this happen multiple times?Chiranjeet Mishra
06/12/2026, 11:21 AMandrewboy777
06/12/2026, 11:31 AMChiranjeet Mishra
06/12/2026, 11:40 AM019ebb74-76bf-7002-8c28-b3015b123651 and confirmed the exact point of failure in our logs. Vapi sent the tool-call to your ARTDENT-SEARCHAPPOINTMENT webhook at 10:51:27 and received a socket hang up at 10:51:32, meaning the TCP connection closed before the HTTP response body reached us.
Since you're on n8n, the most likely cause is that the webhook workflow finishes executing and closes the HTTP connection before the response is fully flushed to our side. In n8n this usually happens when there's no explicit "Respond to Webhook" node, or the response node is at the end of a long execution chain. The fix is to make sure your n8n workflow responds to the webhook immediately at the start (with the result, using a "Respond to Webhook" node), and that it isn't closing the connection prematurely.
If you're already using a "Respond to Webhook" node, check that nothing in the chain before it is causing a 5-second delay, our logs show the hang up at exactly the 5-second mark, which can sometimes indicate a default execution timeout on the n8n side.andrewboy777
06/12/2026, 1:23 PMChiranjeet Mishra
06/12/2026, 1:27 PM