diegosouzapw/OmniRoute · error · Error
HTTP ${res.status}
Error message
HTTP ${res.status} What it means
Error "HTTP ${res.status}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/runtime/components/ModelCooldownsCard.tsx:28
provider: string;
model: string;
reason: string;
remainingMs: number;
unavailableSince: string;
};
export default function ModelCooldownsCard() {
const t = useTranslations("settings");
const notify = useNotificationStore();
const [items, setItems] = useState<CooldownItem[]>([]);
const [loading, setLoading] = useState(true);
const [busyKey, setBusyKey] = useState<string | null>(null);
const load = useCallback(async () => {
try {
const res = await fetch("/api/resilience/model-cooldowns", { cache: "no-store" });
const json = await res.json();
if (!res.ok) throw new Error(json?.error || `HTTP ${res.status}`);
setItems(Array.isArray(json.items) ? json.items : []);
} catch (error) {
notify.error(error instanceof Error ? error.message : t("modelCooldownsLoadFailed"));
} finally {
setLoading(false);
}
}, [notify, t]);
useEffect(() => {
void load();
const timer = setInterval(() => {
void load();
}, 5000);
return () => clearInterval(timer);
}, [load]);
const clearOne = useCallback(
async (provider: string, model: string) => {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/runtime/components/ModelCooldownsCard.tsx:28 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/0664b9b1d921a90b.
Report an issue: GitHub.