{"record":{"id":"2958fa9eff062167","repo":"diegosouzapw/OmniRoute","slug":"reached-limit","errorCode":"reached_limit","errorMessage":"Inner.ai: usage limit reached","messagePattern":"Inner\\.ai: usage limit reached","errorType":"error_code","errorClass":"InnerAiStreamError","httpStatus":429,"severity":"error","filePath":"open-sse/executors/inner-ai.ts","lineNumber":537,"sourceCode":"\n      const type = data.type;\n      if (type === \"text\" && typeof data.item === \"string\") {\n        content += data.item;\n        continue;\n      }\n      if (\n        type === \"missing_credits\" ||\n        type === \"reached_limit\" ||\n        type === \"rate_limit_reached\" ||\n        type === \"rate_limit_longer_reached\"\n      ) {\n        const errorMsg =\n          type === \"missing_credits\"\n            ? \"Inner.ai: not enough credits\"\n            : type === \"reached_limit\"\n              ? \"Inner.ai: usage limit reached\"\n              : \"Inner.ai: rate limit reached — try again later\";\n        throw new InnerAiStreamError(429, String(type), errorMsg);\n      }\n    }\n  }\n  return content;\n}\n\n// ── Executor ──────────────────────────────────────────────────────────────────\n\nexport class InnerAiExecutor extends BaseExecutor {\n  constructor() {\n    super(\"inner-ai\", { id: \"inner-ai\", baseUrl: \"https://chatapi.innerai.com\" });\n  }\n\n  async execute(input: ExecuteInput) {\n    const { body, credentials, signal, stream: wantStream } = input;\n    const bodyObj = (body || {}) as Record<string, unknown>;\n\n    const rawToken = String(credentials?.apiKey ?? \"\").trim();","sourceCodeStart":519,"sourceCodeEnd":555,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/inner-ai.ts#L519-L555","documentation":"Upstream quota signal in collectContent: Inner.ai emitted a 'reached_limit' event — the account hit its usage limit. The response stops mid-generation; depending on the limit type it may reset after a window, but it is an account-level cap, not a per-minute throttle.","triggerScenarios":"Thrown at open-sse/executors/inner-ai.ts:537 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Apply a connection cooldown until the usage window resets (prefer any reset hint from the event)","Rotate to another Inner.ai account or provider via fallback","If it persists past the window, mark the connection unavailable"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}