diegosouzapw/OmniRoute · error · OutboundUrlGuardError

OUTBOUND_URL_GUARD_BLOCKED

OUTBOUND_URL_GUARD_BLOCKED

Error message

Blocked outbound URL with embedded credentials

What it means

Error "Blocked outbound URL with embedded credentials" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/shared/network/outboundUrlGuard.ts:104

  try {
    url = input instanceof URL ? input : new URL(String(input));
  } catch {
    throw new OutboundUrlGuardError(`Invalid outbound URL: ${String(input)}`, {
      code: "OUTBOUND_URL_INVALID",
      url: String(input),
    });
  }

  if (url.protocol !== "http:" && url.protocol !== "https:") {
    throw new OutboundUrlGuardError(`Invalid outbound URL protocol for ${url.toString()}`, {
      code: "OUTBOUND_URL_INVALID",
      url: url.toString(),
      hostname: url.hostname || null,
    });
  }

  if (url.username || url.password) {
    throw new OutboundUrlGuardError("Blocked outbound URL with embedded credentials", {
      code: "OUTBOUND_URL_GUARD_BLOCKED",
      url: url.toString(),
      hostname: url.hostname || null,
    });
  }

  return url;
}

export function parseAndValidatePublicUrl(input: string | URL) {
  const url = parseOutboundUrl(input);

  if (isPrivateHost(url.hostname)) {
    throw new OutboundUrlGuardError(PROVIDER_URL_BLOCKED_MESSAGE, {
      code: "OUTBOUND_URL_GUARD_BLOCKED",
      url: url.toString(),
      hostname: url.hostname || null,
    });

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/shared/network/outboundUrlGuard.ts:104 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/4e10ed2706fadde1. Report an issue: GitHub.