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
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...