diegosouzapw/OmniRoute · error

PROXY_001

PROXY_001

Error message

Proxy connection failed

What it means

PROXY_001 (502): OmniRoute could not establish a connection through the configured HTTP/SOCKS proxy — TCP connect failure, proxy auth rejection, or proxy protocol error. The request never reached the upstream provider.

Solutions

  1. Check the proxy host/port and credentials configured for the connection
  2. Verify the proxy service is running and reachable from the server
  3. Disable the proxy for that connection or assign a healthy proxy
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/shared/constants/errorCodes.ts:59 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/2d50688a9f16b63e. Report an issue: GitHub.

Appendix: source

Thrown at src/shared/constants/errorCodes.ts:59

    category: "AUTH",
  },
  AUTH_005: { code: "AUTH_005", message: "Account locked", httpStatus: 423, category: "AUTH" },
  AUTH_006: {
    code: "AUTH_006",
    message: "No credentials for provider",
    httpStatus: 400,
    category: "AUTH",
  },
  AUTH_007: {
    code: "AUTH_007",
    message: "Session expired (re-login required)",
    httpStatus: 401,
    category: "AUTH",
  },

  // ── Proxy ──
  PROXY_001: {
    code: "PROXY_001",
    message: "Proxy connection failed",
    httpStatus: 502,
    category: "PROXY",
  },
  PROXY_002: { code: "PROXY_002", message: "Proxy timeout", httpStatus: 504, category: "PROXY" },
  PROXY_003: {
    code: "PROXY_003",
    message: "All proxies exhausted",
    httpStatus: 503,
    category: "PROXY",
  },

  // ── Rate Limiting ──
  RATE_001: {
    code: "RATE_001",
    message: "Rate limit exceeded",
    httpStatus: 429,
    category: "RATE_LIMIT",

View on GitHub (pinned to a179ffed5b)