#[SOLVED] ECONNREFUSED on appwrite function using appwrite cloud

8 messages · Page 1 of 1 (latest)

craggy tree
#

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?

supple bay
craggy tree
#

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