Skip to content
Back

when hitting external URL: fetch failed and getaddrinfo ENOTFOUND

  • 0
  • Functions
  • Cloud
amitrochates
1 Oct, 2025, 15:38

We have a server running Prefect at a url, we send post requests to this server regularly through cloud functions. Recently appwrite has not been able to access this and the post requests end up in 'fetch failed' error ( using undici fetch ) ,
Trying to do a health check ( with node-fetch) results in request to <url> failed, reason: getaddrinfo ENOTFOUND <url> the endpoint is working with curl and can be accessed outside of appwrite.

TL;DR
Issue: Developers facing "fetch failed and getaddrinfo ENOTFOUND" error when trying to access an external URL through Appwrite functions. Solution: Confirm that the DNS A record is on the Appwrite ns and consider using curl requests successfully. The endpoint can be accessed outside Appwrite but not through its functions. A health check with node-fetch returns an error.
amitrochates
1 Oct, 2025, 15:40

@yash🎧

yash🎧
1 Oct, 2025, 15:48

Adding to above:

dns A record is on appwrite ns. We can do curl requests to the url successfully but not working via appwrite functions.

yash🎧
1 Oct, 2025, 15:50

Let us know if need more details.

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