Back

[SOLVED] Error: connect ECONNREFUSED (Functions)

  • 0
  • Self Hosted
  • Web
elemin67
9 May, 2023, 10:29

Hi,

Im triying to execute a standart function. I recive this Error:

Error: connect ECONNREFUSED xx.xx.xx.xx:443 at Client.call (/usr/code-start/node_modules/node-appwrite/lib/client.js:178:23) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Users.list (/usr/code-start/node_modules/node-appwrite/lib/services/users.js:40:16) at async module.exports (/usr/code-start/src/index.js:61:14) at async /usr/local/src/server.js:68:13

This error occured, after if I use this code-snipped: const user = await users.list();

Any idea?

TL;DR
The user is experiencing an error (connect ECONNREFUSED) when trying to execute a standard function in their appwrite frontend. They have tried using both a local IP and a URL with an endpoint as environment variables, but the error persists. They have also shared their index.js code. The error message specifically points to line 61 where a function 'list()' is called on the 'users' object. They are looking for any ideas or suggestions to fix this issue.
elemin67
9 May, 2023, 10:32

that is my index.js

Binyamin
9 May, 2023, 10:33

Have you added your server ip as environment variables with https?

elemin67
9 May, 2023, 10:34
elemin67
9 May, 2023, 10:34

i tried this in appwrite frontend

elemin67
9 May, 2023, 10:35

I put also the IP as hostname

elemin67
9 May, 2023, 10:36

for the Enviroment variables i put the endpoint with https and /v1 in the end

elemin67
9 May, 2023, 10:37
elemin67
9 May, 2023, 10:37
Binyamin
9 May, 2023, 10:37

Yep. That's looks good

elemin67
9 May, 2023, 10:38

but its not working, same error

elemin67
9 May, 2023, 11:43

problem solved: I used local IP like 192.168.x.x

Drake
9 May, 2023, 14:51

[SOLVED] Error: connect ECONNREFUSED (Functions)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more