Back
Functions "Error: fetch failed" database - Node v18 - Self hosted
- 0
- Databases
- Functions
- Self Hosted

Hello, I am trying to run this sample function: https://github.com/appwrite/templates/tree/main/node/database-cleaner But it got an error:
TypeScript
Error: fetch failed
at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:195:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.listDocuments (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/databases.js:1658:16)
at async AppwriteService.cleanCollection (file:///usr/local/server/src/function/src/appwrite.js:28:18)
at async Module.default (file:///usr/local/server/src/function/src/main.js:14:3)
at async execute (/usr/local/server/src/server.js:157:22)
at async action (/usr/local/server/src/server.js:174:13)
at async /usr/local/server/src/server.js:10:9
- I have already set environment vars and set CRUD permissions for "Any" role in the collection setting
- I use node v18.0 on Self-hosted Please help me! π₯Ί
TL;DR
Developers are facing an "Error: fetch failed" while running a sample function. The error occurs when trying to use the function provided in a GitHub repository. Environment variables have been set and CRUD permissions for the collection are configured. The issue is encountered on a self-hosted environment using Node v18.0.
what are you using for your appwrite endpoint?
Recommended threads
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
