diegosouzapw/OmniRoute · error · SafeOutboundFetchError
NETWORK_ERROR
NETWORK_ERROR
Error message
Outbound request failed for ${targetUrl.toString()} What it means
Error "Outbound request failed for ${targetUrl.toString()}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/shared/network/safeOutboundFetch.ts:362
}
return response;
} catch (error) {
const normalizedError = normalizeFetchFailure(error, targetUrl.toString(), method, attempt);
const shouldRetry =
retryConfig.shouldRetryMethod &&
attempt < retryConfig.attempts &&
normalizedError.isRetryable;
if (!shouldRetry) {
throw normalizedError;
}
await sleep(getBackoffDelay(retryConfig.backoffMs, attempt));
}
}
throw new SafeOutboundFetchError(`Outbound request failed for ${targetUrl.toString()}`, {
code: "NETWORK_ERROR",
url: targetUrl.toString(),
method,
attempts: retryConfig.attempts,
isRetryable: false,
});
}
export function getSafeOutboundFetchErrorStatus(error: unknown) {
if (!(error instanceof SafeOutboundFetchError)) return null;
if (error.code === "TIMEOUT") return 504;
if (
error.code === "INVALID_URL" ||
error.code === "URL_GUARD_BLOCKED" ||
error.code === "REDIRECT_BLOCKED"
) {
return 503;View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/shared/network/safeOutboundFetch.ts:362 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/a46fba0adf3479b7.
Report an issue: GitHub.