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

Error "Blackbox Web rate limited the session. Wait a moment and retry." thrown in diegosouzapw/OmniRoute.

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)

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.