Skip to content
Back

Appwrite Sites - getaddrinfo ENOTFOUND

  • 0
  • Sites
  • Web
  • Cloud
Rostlino
26 Jul, 2025, 06:23

Has anyone had a problem having appwrite on a subdomain in the project custom domains? We have an issue with the Appwrite Sites. Sometimes the internal node:dns (runtime node-22) has a problem getting addrinfo, luckily we use Sentry so we know this type of error only happens 3-6 times a day. Should we create a PR?

We are using the subdomain as endpoint, because it is recommended by the docs (Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.) , so instead of https://fra.cloud.appwrite.io/v1 we use https://appwrite.rostlino.cz/v1

TL;DR
Developers experienced ongoing issues with DNS resolution leading to 'getaddrinfo ENOTFOUND' errors on Appwrite Sites. Initially, replacing the CNAME record resolved the problem temporarily. Eventually, adding a CNAME record to 'fra.cloud.appwrite.io' and then to 'appwrite.network' fixed the issue permanently. After these updates, the problem was resolved, indicating a successful fix. Subsequently, the issue occurred when using custom subdomains. Developers encountered further challenges with resolving DNS and decided to create a separate ticket to address the lingering logging problem.
Steven
5 Aug, 2025, 18:00

can you try and output more details such as the stack from the error?

Steven
5 Aug, 2025, 21:01

can you share the exact timestamp it happened last?

Rostlino
7 Aug, 2025, 13:15

@Steven Hi Steven, sending you a public sentry link https://rostlino.sentry.io/share/issue/d4a5a1f4bfff421ebca39777aed0c0d6/

As you can see, the issue is at the server side of Appwrite at node:dns

TypeScript
Error: getaddrinfo ENOTFOUND appwrite.rostlino.sk
  File "node:dns", line 120, col 26, in GetAddrInfoReqWrap.onlookupall [as oncomplete]
  File "node:internal/async_hooks", line 130, col 17, in GetAddrInfoReqWrap.callbackTrampoline
TypeError: fetch failed
  File "node:internal/deps/undici/undici", line 13185, col 13
  File "node:internal/process/task_queues", line 105, col 5, in process.processTicksAndRejections`

Currently looks like, that it is happening only when using custom subdomains, and it looks like **global ** issue that might affect **functions ** as well when using the endpoint as custom subdomain.

After the expiration of 3600sec when the DNS is again resolved (proximately 2sec), the domain works (looks like for another 3600sec), so probably some issues at Fastly? Cold-boots?

Steven
7 Aug, 2025, 14:15

Can you try adding a DNS record for the domain and point it to the region endpoint?

Rostlino
7 Aug, 2025, 14:52

@Steven Hi Steven, what do you mean adding a DNS record for the domain? Do you mean subdomain? CNAME is wildcarded so the subdomain is included and is pointing to appwrite.network by default.

Do you mean like include the CNAME that points to the API endpoint?

TypeScript
appwrite    CNAME     fra.cloud.appwrite.io     3600
Steven
7 Aug, 2025, 16:38

yes, like that

Rostlino
8 Aug, 2025, 13:11

Configured, currently waiting for the DNS's to update, we have multiple domains, so let's focus only on the rostlino.com https://dnschecker.org/#CNAME/appwrite.rostlino.com

Rostlino
8 Aug, 2025, 13:11
Rostlino
8 Aug, 2025, 13:15

@Steven Also, we have disabled the logging (few days ago) on all the sites and yet, still getting the logs, It will be another issue, so I will create another ticket.

Rostlino
8 Aug, 2025, 14:56

@Steven The issue is still even after updating the DNS record CNAME to appwrite, so the appwrite.network is not used to resolve the appwrite subdomain.

Steven
8 Aug, 2025, 15:12

Is it happening less?

Rostlino
9 Aug, 2025, 15:57

@Steven Looks like it's fixed πŸ‘

Steven
11 Aug, 2025, 15:11

FYI, we pushed another improvement. Is it still going okay for you?

Rostlino
11 Aug, 2025, 15:26

@Steven Hello πŸ‘‹ , adding CNAME record to the fra.cloud.appwrite.io resolve the issue.

I will remove the CNAME record, on one of the domains (rostlino.com) so it will fallback to the wildcard with value appwrite.network and let you know, if the strict CNAME record is required or not.

Rostlino
13 Aug, 2025, 04:04

@Steven Hello πŸ‘‹ , looks like the CNAME record is no longer needed and the wildcard for appwrite.network works correctly now πŸ™Œ

Rostlino
31 Aug, 2025, 21:07

@Steven Looks like the issue is still present.

Steven
2 Sep, 2025, 22:06

the issue went away and came back?

Steven
2 Sep, 2025, 22:06

how frequent does it happen?

Rostlino
3 Sep, 2025, 03:35

Yes, now it's with every request, so all the time.

Rostlino
3 Sep, 2025, 18:21

@Steven Any updates?

Steven
3 Sep, 2025, 18:44

what if you replace that fra.cloud.appwrite.io cname with dualstack.t.sni.global.fastly.net?

Rostlino
3 Sep, 2025, 19:09
Rostlino
5 Sep, 2025, 16:01

@Steven The issue is still present

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