diegosouzapw/OmniRoute · error
Cursor AvailableModels returned no models
Error message
Cursor AvailableModels returned no models
What it means
The AvailableModels response was OK and JSON, but normalizeCursorAvailableModelsPayload produced an empty model list — Cursor returned no usable entries (account without model access or an API shape change).
Solutions
- Check the Cursor account actually has model access enabled
- Retry — an empty catalog can be transient on the Cursor side
- Inspect the raw payload against normalizeCursorAvailableModelsPayload if Cursor changed its API shape
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/providerModels/cursorAvailableModels.ts:185 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/9f05f52ba78b2e39.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/providerModels/cursorAvailableModels.ts:185
if (!response.ok) {
const text = await response.text().catch(() => "");
throw new Error(
`Cursor AvailableModels failed: ${response.status}${text ? ` ${text.slice(0, 200)}` : ""}`
);
}
const contentType = response.headers.get("content-type") || "";
if (contentType.includes("proto") || contentType.includes("protobuf")) {
throw new Error(
"Cursor AvailableModels returned protobuf; JSON catalog unavailable for this client version"
);
}
const payload = await response.json();
const models = normalizeCursorAvailableModelsPayload(payload);
if (models.length === 0) {
throw new Error("Cursor AvailableModels returned no models");
}
return models;
}
View on GitHub (pinned to a179ffed5b)