diegosouzapw/OmniRoute · error
BLACKBOX_SUBSCRIPTION_REQUIRED
BLACKBOX_SUBSCRIPTION_REQUIRED
Error message
Blackbox reports your account lacks a premium subscription. If you have a paid plan, re-paste your session cookie from app.blackbox.ai.
What it means
The Blackbox web executor inspected the upstream response body and matched subscription-gate phrases (not upgraded / upgrade to a premium plan / upgrade.required / please upgrade). It means the linked Blackbox account is on a free plan, so premium models are refused; a 402 with BLACKBOX_SUBSCRIPTION_REQUIRED is returned to the client.
Solutions
- Upgrade the Blackbox account to a premium plan at app.blackbox.ai
- If the account is already paid, re-paste a fresh session cookie from app.blackbox.ai into the connection credentials
- Route the request to a non-premium Blackbox model or a different provider
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at open-sse/executors/blackbox-web.ts:610 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/f900e9c8248b43e7.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/blackbox-web.ts:610
const lowerText = responseText.toLowerCase();
const isSubscriptionError =
/not upgraded|upgrade to a premium plan|upgrade.required/i.test(responseText) ||
lowerText.includes("please upgrade");
const isAuthError =
/please login|login required|authentication required/i.test(responseText) &&
!isSubscriptionError;
const isRateLimit = /rate limit|too many requests/i.test(responseText) && !isSubscriptionError;
if (isSubscriptionError) {
log?.warn?.("BLACKBOX-WEB", "Blackbox returned subscription error in response body");
const errorResponse = new Response(
JSON.stringify({
error: {
message:
"Blackbox reports your account lacks a premium subscription. " +
"If you have a paid plan, re-paste your session cookie from app.blackbox.ai.",
type: "upstream_error",
code: "BLACKBOX_SUBSCRIPTION_REQUIRED",
},
}),
{ status: 402, headers: { "Content-Type": "application/json" } }
);
return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };
}
if (isAuthError) {
log?.warn?.("BLACKBOX-WEB", "Blackbox returned auth error in response body");
const errorResponse = new Response(
JSON.stringify({
error: {
message:
"Blackbox session is not authenticated — re-paste next-auth.session-token from app.blackbox.ai",
type: "upstream_error",
code: "BLACKBOX_AUTH_REQUIRED",
},
}),View on GitHub (pinned to a179ffed5b)