diegosouzapw/OmniRoute · error

PROVIDER_002

PROVIDER_002

Error message

Provider timeout

What it means

PROVIDER_002 (504): the upstream provider did not complete the request within the configured timeout and the request was aborted. Unlike PROXY_002 this is the provider leg, after successful connection establishment.

Solutions

  1. Increase the provider timeout for slow models (long reasoning)
  2. Retry the request with backoff
  3. Switch to a faster provider/model in the combo
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/shared/constants/errorCodes.ts:115 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/1ce7b90fa31824f7. Report an issue: GitHub.

Appendix: source

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

    httpStatus: 400,
    category: "MODEL",
  },
  MODEL_003: {
    code: "MODEL_003",
    message: "Model temporarily unavailable",
    httpStatus: 503,
    category: "MODEL",
  },

  // ── Provider ──
  PROVIDER_001: {
    code: "PROVIDER_001",
    message: "Provider error",
    httpStatus: 502,
    category: "PROVIDER",
  },
  PROVIDER_002: {
    code: "PROVIDER_002",
    message: "Provider timeout",
    httpStatus: 504,
    category: "PROVIDER",
  },
  PROVIDER_003: {
    code: "PROVIDER_003",
    message: "Provider not configured",
    httpStatus: 400,
    category: "PROVIDER",
  },

  // ── Validation ──
  VALID_001: {
    code: "VALID_001",
    message: "Invalid request body",
    httpStatus: 400,
    category: "VALIDATION",
  },

View on GitHub (pinned to a179ffed5b)