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
TypeScript
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
TypeScript
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
TL;DR
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.Recommended threads
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- SSL certificate generation failed even t...
Hello, I have an Appwrite Site for which I added a custom domain. However, even though the domain is verified, the SSL certificate generation is failing. It is ...
- [Self-hosted] Realtime crashes with "Mis...