Im using appwrite cloud and when running a function that i have recently deployed i get this error:
Error: connect ECONNREFUSED 127.0.0.1:80 at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:180:23) 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:1638:16) at async Module.default (file:///usr/local/server/src/function/index.js:11:27) at async execute (/usr/local/server/src/server.js:141:22) at async /usr/local/server/src/server.js:158:13
what could be happening?
You seem to be using localhost for the endpoint
I sent my code to see what the error could be.
In client().setEndpoint I call a .env variable with the endpoint, is it written correctly?
ohh
It seems to me that I wrote the name of the variable wrong, I will try to modify it and see if that is the error.
Oh that worked, solved <:appwriterocket:823996226894692403>
[SOLVED] ECONNREFUSED on appwrite function using appwrite cloud
Recommended threads
- [v1.8.1] Getting error "(role: applicati...
... but that scope doesn't exist. I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got: ...
- Scheduled function silently stopped firi...
Function is scheduled `* * * * *` and is `enabled: true`, but Appwrite Cloud has stopped queueing executions. Last execution: **2026-05-30 00:47 UTC** (~46h...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...