
Hi,
I'm trying to create a function for my App. But somehow I keep getting this error when trying to use the sdk in the function (NodeJS).
I used this template and updated the sdk version to 14.1.0 (https://github.com/appwrite/templates/blob/main/node/starter/src/main.js)
Why do I keep getting this error? Its the only error I can see in the execution tab.
SSL is all set up correctly (selfhosted). There is also no firewall preventing the request.
Thanks for quick help in advance!

With go i got a better error: Could not list users: Get "https://api.XXXX/v1/users": dial tcp 127.0.1.1:443: connect: connection refused
How can I fix this? I use normal, public dns for appwrite

Why does it try to dial in local address? 😄

the api endpoint should be set to the actual public DNS or IP address, not 127.0.0.1 👀

It is. Fixed it my changing "hostnames" file on Server (not in docker) 😄

Great to hear 🙂
Recommended threads
- REST API does not work for queries
``` curl -X GET "https://cloud.appwrite.io/v1/databases/<db-id>/collections/<c-id>/documents" -H "X-Appwrite-Project: <project-id>" -H "X-Appwrite-Key: <key>"...
- deleteDocments is not a function
Hello. At the bottom of my project's console, in the footer, I have `Version 1.7.4`. However, when I run my server side function, I am told that `databases.dele...
- Server Error when updating an existing d...
I am getting "AppwriteException: general_unknown, Server Error (500)" when using UpsertDocument on Appwrite Cloud from a function with Dart 3.5 runtime and dart...
