Skip to content
Init is here / May 19 - 23
Back

TypeError: fetch failed on Appwrite Function

  • 0
  • Functions
wkijedi
21 May, 2025, 11:52

I keep getting this error even when using the starter function. My Function endpoint is similar to app_domain. I have tried proxying the subdomain via Cloudflare, but the error persists. Please help. Thanks. Error: TypeError: fetch failed at node:internal/deps/undici/undici:12618:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _Client.call (file:///usr/local/server/src/function/node_modules/node-appwrite/dist/client.mjs:263:22) at async Databases.listDocuments (file:///usr/local/server/src/function/node_modules/node-appwrite/dist/services/databases.mjs:1620:12) at async Module.default (file:///usr/local/server/src/function/src/main.js:24:24) at async execute (/usr/local/server/src/server.js:208:16) at async action (/usr/local/server/src/server.js:225:7) at async /usr/local/server/src/server.js:14:5

TL;DR
Developers are facing a "TypeError: fetch failed" error in their Appwrite Function due to issues with the fetch request. They tried proxying the subdomain via Cloudflare but the error persists. Solution: The error seems to be originating from the Appwrite SDK. Double-check the endpoint address and ensure it is correctly configured. Clear the cache and verify the proxy settings.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more