diegosouzapw/OmniRoute · error · Error

Volcano plan returned no usable models

Error message

Volcano ${kind} plan returned no usable models

What it means

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.

Solutions

  1. Verify the Volcano plan subscription is active and entitled to models on the Volcengine console.
  2. Re-bind the plan: clear and re-add the provider's console cookie/CSRF credentials so the discovery call targets the correct AccountId.
  3. Inspect the raw console API response (cfg.action endpoint) to confirm the payload shape still matches parseLatestModelList expectations after upstream changes.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:390 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/e42f2062be568021. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:390

    }
    payload.AccountId = accountId;
  }
  const result = await callConsoleApiDirect(
    cfg.action,
    payload,
    cookieHeader,
    csrfToken,
    cfg.referer
  );
  if (!result.ok) {
    throw new Error(
      `Volcano ${kind} plan model discovery (${cfg.action}) failed${result.error ? `: ${result.error}` : ""}`
    );
  }

  const discovered = parseLatestModelList(result.json);
  if (discovered.length === 0) {
    throw new Error(`Volcano ${kind} plan returned no usable models`);
  }
  return discovered.map(enrichModel);
}

export function providerToVolcPlanKind(providerId: string): VolcPlanKind | null {
  const id = providerId.trim().toLowerCase();
  if (id === "volcengine-agent-plan") return "agent";
  if (id === "volcengine-coding-plan") return "coding";
  return null;
}

View on GitHub (pinned to a179ffed5b)