Skip to content
Back

Local function cant access itself for listing?

  • 0
  • Self Hosted
  • Functions
ThisIsStep2
27 May, 2025, 10:28

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.
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