diegosouzapw/OmniRoute · error · Error
Volcano plan unavailable ` : ""} — re-bind the plan
Error message
Volcano ${kind} plan unavailable${detected.error ? `: ${detected.error}` : ""} — re-bind the plan What it means
Thrown by fetchVolcPlanModels after running detectPlan: the Volcano Ark plan subscription (kind-specific) is no longer available on the account — expired, disabled, or the console reports an error (appended in the message). Model listing is aborted so a stale/empty catalog never erases the user's synced models; the remedy is re-binding the plan.
Solutions
- Check the plan status in the Volcano console and renew/re-subscribe if expired.
- Re-bind the plan with fresh console credentials once the subscription is active again.
- Inspect detected.error in logs for the underlying console API failure (auth vs. subscription state).
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:359 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/618e1549bbdad750.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:359
* console cookie + csrf token stored on the connection's providerSpecificData.
*
* Verifies the plan subscription is still active (detectPlan) before listing,
* so an expired/disabled plan returns a clear error instead of a stale/empty
* catalog that would erase the user's synced models.
*/
export async function fetchVolcPlanModels(
kind: VolcPlanKind,
cookieHeader: string,
csrfToken: string
): Promise<SyncedAvailableModelInput[]> {
if (!cookieHeader || !csrfToken) {
throw new Error("Volcano console cookie or csrfToken is missing — re-bind the plan");
}
// Validate the subscription/credentials are still live.
const detected = await detectPlan(kind, cookieHeader, csrfToken);
if (!detected.available) {
throw new Error(
`Volcano ${kind} plan unavailable${detected.error ? `: ${detected.error}` : ""} — re-bind the plan`
);
}
const cfg = PLAN_DISCOVERY_CONFIG[kind];
const payload: JsonRecord = { ...cfg.payload };
if (cfg.requiresAccountId) {
const accountId = extractAccountId(cookieHeader);
if (accountId === null) {
throw new Error(
`Volcano ${kind} plan discovery requires AccountId, but none found in console cookie — re-bind the plan`
);
}
payload.AccountId = accountId;
}
const result = await callConsoleApiDirect(
cfg.action,
payload,View on GitHub (pinned to a179ffed5b)