diegosouzapw/OmniRoute · error

HTTP_429

HTTP_429

Error message

Grok rate limited. Wait a moment and retry, or rotate cookies.

What it means

Grok web status/classification mapper: a 401/403 from grok.com means the SSO cookie is expired or invalid (and a Cloudflare challenge means cf_clearance cannot be replayed from datacenter egress). The mapper returns a typed authentication_error so callers get an actionable message instead of a raw HTML block page.

Solutions

  1. Re-paste the sso cookie value from grok.com into the connection
  2. Probe cf_clearance from a residential IP matching the pinned IP+TLS+UA
  3. Switch to the official xAI API provider ('grok') to avoid cookie churn
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at open-sse/executors/grok-web.ts:704 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/952aa39410b88219. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/grok-web.ts:704

      message:
        "Grok returned a Cloudflare bot-management challenge instead of a real response. " +
        "cf_clearance is pinned to the IP+TLS+UA that earned it and can't be replayed from " +
        "a datacenter/sandbox egress. Probe from a residential IP, or use the official xAI API " +
        "(provider: 'grok') instead.",
    };
  }
  if (status === 401 || status === 403) {
    return {
      type: "authentication_error",
      code: `HTTP_${status}`,
      message:
        "Grok auth failed — SSO cookie may be expired. Re-paste your sso cookie value from grok.com.",
    };
  }
  if (status === 429) {
    return {
      type: "rate_limit_error",
      code: "HTTP_429",
      message: "Grok rate limited. Wait a moment and retry, or rotate cookies.",
    };
  }
  return {
    type: "upstream_error",
    code: `HTTP_${status}`,
    message: `Grok returned HTTP ${status}`,
  };
}

function buildGrokNullBodyErrorResponse(
  status: number,
  classification: GrokNullBodyError
): Response {
  return new Response(
    JSON.stringify({
      error: {
        message: classification.message,

View on GitHub (pinned to a179ffed5b)