{"record":{"id":"e42f2062be568021","repo":"diegosouzapw/OmniRoute","slug":"volcano-kind-plan-returned-no-usable-models","errorCode":null,"errorMessage":"Volcano ${kind} plan returned no usable models","messagePattern":"Volcano (.+?) plan returned no usable models","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/providers/volcenginePlanModelDiscovery.ts","lineNumber":390,"sourceCode":"    }\n    payload.AccountId = accountId;\n  }\n  const result = await callConsoleApiDirect(\n    cfg.action,\n    payload,\n    cookieHeader,\n    csrfToken,\n    cfg.referer\n  );\n  if (!result.ok) {\n    throw new Error(\n      `Volcano ${kind} plan model discovery (${cfg.action}) failed${result.error ? `: ${result.error}` : \"\"}`\n    );\n  }\n\n  const discovered = parseLatestModelList(result.json);\n  if (discovered.length === 0) {\n    throw new Error(`Volcano ${kind} plan returned no usable models`);\n  }\n  return discovered.map(enrichModel);\n}\n\nexport function providerToVolcPlanKind(providerId: string): VolcPlanKind | null {\n  const id = providerId.trim().toLowerCase();\n  if (id === \"volcengine-agent-plan\") return \"agent\";\n  if (id === \"volcengine-coding-plan\") return \"coding\";\n  return null;\n}\n","sourceCodeStart":372,"sourceCodeEnd":401,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/providers/volcenginePlanModelDiscovery.ts#L372-L401","documentation":"Thrown after a successful Volcano (Volcengine) Agent or Coding plan console API call when parseLatestModelList() finds no model entries in the response JSON. The HTTP call succeeded, but the plan returned an empty/unusable model list — typically an expired plan, an unbound plan, or an account with no entitled models.","triggerScenarios":"Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:390 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Volcano plan subscription is active and entitled to models on the Volcengine console.","Re-bind the plan: clear and re-add the provider's console cookie/CSRF credentials so the discovery call targets the correct AccountId.","Inspect the raw console API response (cfg.action endpoint) to confirm the payload shape still matches parseLatestModelList expectations after upstream changes."],"exampleFix":null,"handlingStrategy":"try-catch","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"}