TLS and network errors: troubleshooting TLS_ERROR and NETWORK_ERROR

Certificate problems and network-layer failures that stop llms.txt from being fetched: a troubleshooting checklist from handshake errors to network faults other than DNS.

About 2 min readError codes covered: TLS_ERRORNETWORK_ERROR

Connection-layer failures other than DNS_ERROR (the domain does not exist) fall under these two codes.

TLS_ERROR: handshake or certificate problems

Common causes and what to do:

  • An expired certificate or a domain mismatch: renew the certificate, or check which domains it was issued for (including coverage of both www and the bare domain).
  • Only old protocols are supported: modern TLS (1.2+) is a basic requirement.
  • An incomplete certificate chain: some clients tolerate it; we cannot. Complete the intermediate certificates (inspect the chain with openssl s_client -connect your-domain:443).

NETWORK_ERROR: connection-layer failures

The connection was reset, was unreachable, and so on. llms.txt is a static text file, and the most common cause is that the origin blocks non-browser requests (a WAF or anti-crawling rules). What to do:

  • Allow ordinary GET requests for /llms.txt in the WAF or anti-crawling configuration.
  • Confirm that the host serving the file is reachable from the public internet (curl working locally does not mean it works from the public internet).

How this differs from DNS_ERROR

DNS_ERROR = the domain itself does not resolve (most likely the domain was written wrong); TLS_ERROR / NETWORK_ERROR = the domain exists but the connection could not be established. All three have their own records among the observations in the report, and the fixes differ.

Test environment and results

Environment: Node v24.18.0, the llmstxtdb fetch engine (safe-fetch: a direct-IP pre-check plus DNS validation of every address), tested on 2026-10-05. A link pointing to a domain that does not exist produced a DNS_ERROR observation (the other, normal links in the same file were unaffected); a URL with credentials was refused locally before any request was made (see the deployment guide). Per-hop DNS validation covered every resolved address in the test, which prevents a single resolution from getting around the private network restriction (covered by a regression test).

After fixing, verify with the online check.