diegosouzapw/OmniRoute · error · Error
t("apiKeysLoadFailed", { status: res.status })
Error message
t("apiKeysLoadFailed", { status: res.status }) What it means
Error "t("apiKeysLoadFailed", { status: res.status })" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/endpoint/ApiEndpointsTab.tsx:151
loadCatalog().then((result) => {
if (!cancelled) {
setCatalog(result.data);
setCatalogError(result.error);
setLoading(false);
}
});
return () => {
cancelled = true;
};
}, [loadCatalog]);
// Load API keys for Try It functionality. The list endpoint returns masked
// keys; the selected key is revealed only when sending a Try It request.
useEffect(() => {
let cancelled = false;
fetch("/api/keys?limit=100", { credentials: "same-origin" })
.then(async (res) => {
if (!res.ok) throw new Error(t("apiKeysLoadFailed", { status: res.status }));
return res.json();
})
.then((data) => {
if (cancelled) return;
const rows = Array.isArray(data?.keys) ? data.keys : Array.isArray(data) ? data : [];
const keys = rows
.filter((k) => k?.id && k.isActive !== false && k.isBanned !== true)
.map((k) => ({ id: String(k.id), key: String(k.key || k.id) }));
setAvailableApiKeys(keys);
setApiKeyLoadError(null);
if (keys.length > 0) {
setSelectedApiKeyId((current) => current || keys[0].id);
}
})
.catch((error) => {
if (!cancelled) {
setAvailableApiKeys([]);
setApiKeyLoadError(View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/endpoint/ApiEndpointsTab.tsx:151 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/5ab277f9bc685056.
Report an issue: GitHub.