diegosouzapw/OmniRoute · error · FetchTimeoutError

Request to ${url} timed out after ${timeoutMs}ms

Error message

Request to ${url} timed out after ${timeoutMs}ms

What it means

Error "Request to ${url} timed out after ${timeoutMs}ms" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/shared/utils/fetchTimeout.ts:45

  // If an external signal was provided, wire it to abort our controller too
  if (externalSignal) {
    if (externalSignal.aborted) {
      controller.abort();
    } else {
      externalSignal.addEventListener("abort", () => controller.abort(), { once: true });
    }
  }

  try {
    const doFetch = fetchFn || globalThis.fetch;
    const response = await doFetch(url, {
      ...fetchOptions,
      signal: controller.signal,
    });
    return response;
  } catch (error: any) {
    if (error.name === "AbortError") {
      throw new FetchTimeoutError(
        `Request to ${url} timed out after ${timeoutMs}ms`,
        timeoutMs,
        String(url)
      );
    }
    throw error;
  } finally {
    clearTimeout(timeoutId);
  }
}

/**
 * Error thrown on fetch timeout.
 */
export class FetchTimeoutError extends Error {
  timeoutMs: number;
  url: string;

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/shared/utils/fetchTimeout.ts:45 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/750a81e9318986d2. Report an issue: GitHub.