Vapi Agent API Tool Call Failing with "fetch failed"
Hey everyone,
I’m working on a Vapi agent that uses an API call tool to send data to n8n. But whenever the agent calls the tool, I’m getting this error:
{
"message": "fetch failed",
"stack": "TypeError: fetch failed
at node:internal/deps/undici/undici:13178:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async apiRequestToolCallFulfill (/app/dist...
}
Has anyone run into this issue before? Could it be related to how I’m structuring the request, the endpoint URL, or maybe CORS/network restrictions?
Any guidance or examples of a working setup would be super helpful 🙏
Thanks in advance!
6
7 comments
Slok Vaghasiya
3
Vapi Agent API Tool Call Failing with "fetch failed"
AI Automation Society
skool.com/ai-automation-society
A community for mastering AI-driven automation and AI agents. Learn, collaborate, and optimize your workflows!
Leaderboard (30-day)
Powered by