{"record":{"id":"4e10ed2706fadde1","repo":"diegosouzapw/OmniRoute","slug":"outbound-url-guard-blocked","errorCode":"OUTBOUND_URL_GUARD_BLOCKED","errorMessage":"Blocked outbound URL with embedded credentials","messagePattern":"Blocked outbound URL with embedded credentials","errorType":"validation","errorClass":"OutboundUrlGuardError","httpStatus":null,"severity":"error","filePath":"src/shared/network/outboundUrlGuard.ts","lineNumber":104,"sourceCode":"  try {\n    url = input instanceof URL ? input : new URL(String(input));\n  } catch {\n    throw new OutboundUrlGuardError(`Invalid outbound URL: ${String(input)}`, {\n      code: \"OUTBOUND_URL_INVALID\",\n      url: String(input),\n    });\n  }\n\n  if (url.protocol !== \"http:\" && url.protocol !== \"https:\") {\n    throw new OutboundUrlGuardError(`Invalid outbound URL protocol for ${url.toString()}`, {\n      code: \"OUTBOUND_URL_INVALID\",\n      url: url.toString(),\n      hostname: url.hostname || null,\n    });\n  }\n\n  if (url.username || url.password) {\n    throw new OutboundUrlGuardError(\"Blocked outbound URL with embedded credentials\", {\n      code: \"OUTBOUND_URL_GUARD_BLOCKED\",\n      url: url.toString(),\n      hostname: url.hostname || null,\n    });\n  }\n\n  return url;\n}\n\nexport function parseAndValidatePublicUrl(input: string | URL) {\n  const url = parseOutboundUrl(input);\n\n  if (isPrivateHost(url.hostname)) {\n    throw new OutboundUrlGuardError(PROVIDER_URL_BLOCKED_MESSAGE, {\n      code: \"OUTBOUND_URL_GUARD_BLOCKED\",\n      url: url.toString(),\n      hostname: url.hostname || null,\n    });","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/shared/network/outboundUrlGuard.ts#L86-L122","documentation":"Error \"Blocked outbound URL with embedded credentials\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/shared/network/outboundUrlGuard.ts:104 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}