#[SOLVED] TypeError: fetch failed on Appwrite Function

4 messages · Page 1 of 1 (latest)

worthy topaz
#

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

worthy topaz
#

Everything works except when accessing the appwrite database, users, etc.

worthy topaz
#

I’ve managed to solve this. I added 443 and 80 ports to the firewall. I was just wondering why the appwrite console was working even without me adding those rules earlier on.
Thanks @gaunt trench