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
- How Can I Create landing page in appwrit...
I created function called invoice URL https://app.getrestt.com/v1/functions/invoice/executions?id=test-76f948fe83c43422561fe096c0674a1bd3ff0702cdfcf2444293ab31...
- DeploymentStatus enum value `canceled` m...
Hey, Sorry if it has been reported already, I found an issue using the Dart SDK where the `canceled` enum value is missing from `DeploymentStatus`. This causes...
- Synchronous function execution timeout w...
I am calling server functions with xasync = true and I still get this error message. Synchronous function execution timed out. Use asynchronous execution inste...