API Core - v2.4.1
    Preparing search index...

    Function isTransientNetworkFailure

    • Predicate suitable for RetryBackoffOptions.isRetryable: returns true when the transport could not complete the exchange — Node's TypeError: fetch failed (DNS, connect timeout, reset, TLS) or the client's own timeout (DOMException named TimeoutError) — including errors wrapped via Error.cause. A caller's abort (AbortError) and every HTTP response return false. Measured on a Homey (2026-10-22, 01:05): a burst of 23 report reads drew 14 connect timeouts and 9 request timeouts while the same burst from a second host passed thirty seconds later — exactly what a retry with backoff recovers.

      Parameters

      • error: unknown

        The rejection reason thrown by an HTTP call.

      Returns boolean

      Whether the error represents a transient network failure.