diegosouzapw/OmniRoute · error

BLACKBOX_RATE_LIMIT

BLACKBOX_RATE_LIMIT

Error message

Blackbox Web rate limited the session. Wait a moment and retry.

What it means

The Blackbox web executor matched rate-limit phrases (rate limit / too many requests) in the upstream response body. Blackbox has throttled this session's request volume; the executor converts it into an upstream_error response telling the caller to back off and retry.

Solutions

  1. Wait a moment and resend the request
  2. Reduce request frequency or spread load across multiple Blackbox connections
  3. Fall back to another provider for burst traffic
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at open-sse/executors/blackbox-web.ts:641 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/3efde61429ff27d4. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/blackbox-web.ts:641

            message:
              "Blackbox session is not authenticated — re-paste next-auth.session-token from app.blackbox.ai",
            type: "upstream_error",
            code: "BLACKBOX_AUTH_REQUIRED",
          },
        }),
        { status: 401, headers: { "Content-Type": "application/json" } }
      );
      return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };
    }

    if (isRateLimit) {
      log?.warn?.("BLACKBOX-WEB", "Blackbox returned rate-limit error in response body");
      const errorResponse = new Response(
        JSON.stringify({
          error: {
            message: "Blackbox Web rate limited the session. Wait a moment and retry.",
            type: "upstream_error",
            code: "BLACKBOX_RATE_LIMIT",
          },
        }),
        { status: 429, headers: { "Content-Type": "application/json" } }
      );
      return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };
    }

    const id = `chatcmpl-blackbox-${crypto.randomUUID().slice(0, 12)}`;
    const created = Math.floor(Date.now() / 1000);

    if (hasTools) {
      const { content, toolCalls, finishReason } = buildToolAwareResult(
        responseText,
        requestedTools,
        "bbx"
      );
      if (toolCalls) {
        const toolResponse = new Response(

View on GitHub (pinned to a179ffed5b)