{"record":{"id":"3efde61429ff27d4","repo":"diegosouzapw/OmniRoute","slug":"blackbox-rate-limit","errorCode":"BLACKBOX_RATE_LIMIT","errorMessage":"Blackbox Web rate limited the session. Wait a moment and retry.","messagePattern":"Blackbox Web rate limited the session\\. Wait a moment and retry\\.","errorType":"http","errorClass":null,"httpStatus":429,"severity":"error","filePath":"open-sse/executors/blackbox-web.ts","lineNumber":641,"sourceCode":"            message:\n              \"Blackbox session is not authenticated — re-paste next-auth.session-token from app.blackbox.ai\",\n            type: \"upstream_error\",\n            code: \"BLACKBOX_AUTH_REQUIRED\",\n          },\n        }),\n        { status: 401, headers: { \"Content-Type\": \"application/json\" } }\n      );\n      return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };\n    }\n\n    if (isRateLimit) {\n      log?.warn?.(\"BLACKBOX-WEB\", \"Blackbox returned rate-limit error in response body\");\n      const errorResponse = new Response(\n        JSON.stringify({\n          error: {\n            message: \"Blackbox Web rate limited the session. Wait a moment and retry.\",\n            type: \"upstream_error\",\n            code: \"BLACKBOX_RATE_LIMIT\",\n          },\n        }),\n        { status: 429, headers: { \"Content-Type\": \"application/json\" } }\n      );\n      return { response: errorResponse, url: BLACKBOX_CHAT_API, headers, transformedBody };\n    }\n\n    const id = `chatcmpl-blackbox-${crypto.randomUUID().slice(0, 12)}`;\n    const created = Math.floor(Date.now() / 1000);\n\n    if (hasTools) {\n      const { content, toolCalls, finishReason } = buildToolAwareResult(\n        responseText,\n        requestedTools,\n        \"bbx\"\n      );\n      if (toolCalls) {\n        const toolResponse = new Response(","sourceCodeStart":623,"sourceCodeEnd":659,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/blackbox-web.ts#L623-L659","documentation":"Error \"Blackbox Web rate limited the session. Wait a moment and retry.\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/blackbox-web.ts:641 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}