ThisIsStep2Original post
Rank 3: Container
I use appwrite cloud, but before uploading, i want to work locally.
in my local machine (windows 11) i have a running appwrite.
I created a new appwrite function, that should do some background proccesses but it cant access itself.
In my "hosts" file, i defined appwrite.test to be 127.0.0.1
In the appwrite function, I always get errors when i try to get records
for 127.0.0.1
FetchError: request to http://127.0.0.1/v1/databases/production-bkup-1/collections/indicators-collection/documents/67f7da21003a76070c94 failed, reason: connect ECONNREFUSED 127.0.0.1:80
or for appwrite.test
FetchError: request to http://appwrite.test/v1/databases/production-bkup-1/collections/indicators-collection/documents/67f7da21003a76070c94 failed, reason: connect ECONNREFUSED 127.0.0.1:80
Summary
Developers are having trouble accessing an appwrite function locally on Windows 11 due to connection issues to 127.0.0.1 or defined host appwrite.test. The error received is "FetchError: request to [URL] failed, reason: connect ECONNREFUSED 127.0.0.1:80." Double-check host settings and ports for the correct localhost connection.