diegosouzapw/OmniRoute · error · SafeOutboundFetchError
REDIRECT_BLOCKED
REDIRECT_BLOCKED
Error message
Redirect blocked for ${method} ${targetUrl.toString()} (${response.status}) What it means
Error "Redirect blocked for ${method} ${targetUrl.toString()} (${response.status})" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/shared/network/safeOutboundFetch.ts:322
...fetchOptions,
method,
redirect,
signal,
timeoutMs,
// When bypassing the proxy patch, use the original native fetch directly.
fetchFn: bypassProxyPatch ? getOriginalFetch() : undefined,
});
const response = bypassProxyPatch
? await executeFetch()
: proxyConfig
? await runWithProxyContext(proxyConfig, executeFetch)
: await executeFetch();
if (!allowRedirect && response.status >= 300 && response.status < 400) {
const location = response.headers.get("location");
await cancelResponseBody(response);
throw new SafeOutboundFetchError(
`Redirect blocked for ${method} ${targetUrl.toString()} (${response.status})`,
{
code: "REDIRECT_BLOCKED",
url: targetUrl.toString(),
method,
attempts: attempt,
status: response.status,
location,
isRetryable: false,
}
);
}
if (
retryConfig.shouldRetryMethod &&
attempt < retryConfig.attempts &&
retryConfig.statusCodes.has(response.status)
) {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/shared/network/safeOutboundFetch.ts:322 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/b72f32c97816c600.
Report an issue: GitHub.