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!
7
7 comments
Slok Vaghasiya
3
Vapi Agent API Tool Call Failing with "fetch failed"
AI Automation Society
skool.com/ai-automation-society
A community built to master no-code AI automations. Join to learn, discuss, and build the systems that will shape the future of work.
Leaderboard (30-day)
Powered by