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
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?