diegosouzapw/OmniRoute · error · Error
t("notifyEvalLoadFailed")
Error message
t("notifyEvalLoadFailed") What it means
Localized dashboard-refresh sentinel: refreshDashboard()'s GET to /api/evals returned non-ok, and the notify shows 'notifyEvalLoadFailed'. It means suite/run data could not be refreshed — the previously rendered data (if any) stays stale; the localized string replaces the raw status, so the response body holds the real reason.
Solutions
- Re-authenticate if the GET returned 401/403
- Check server logs for eval-store read failures on 5xx
- Trigger a refresh again once the endpoint is healthy
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx:539 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/6e4e89b4ce217338.
Report an issue: GitHub.
Appendix: source
Thrown at src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx:539
const uniqueModels = [
...new Set(
suites
.flatMap((suite) => suite.cases || [])
.map((evalCase) => evalCase.model)
.filter((model): model is string => typeof model === "string" && model.trim().length > 0)
),
];
const compareOptions = targetOptions.filter((option) => option.key !== selectedTargetKey);
const runAllPercent =
runProgress && runProgress.total > 0
? Math.round((runProgress.completed / runProgress.total) * 100)
: 0;
async function refreshDashboard() {
const response = await fetch("/api/evals");
if (!response.ok) {
throw new Error(t("notifyEvalLoadFailed"));
}
const payload = (await response.json()) as EvalsDashboardPayload;
setRecentRuns(Array.isArray(payload.recentRuns) ? payload.recentRuns : []);
setScorecard(payload.scorecard || null);
setTargetOptions(Array.isArray(payload.targets) ? payload.targets : []);
setApiKeys(Array.isArray(payload.apiKeys) ? payload.apiKeys : []);
setSuites(Array.isArray(payload.suites) ? payload.suites : []);
}
function openNewSuiteBuilder() {
setSuiteDraft(createEmptySuiteDraft());
setIsBuilderOpen(true);
}
function openEditSuiteBuilder(suite: EvalSuite) {
setSuiteDraft(suiteToDraft(suite));
setIsBuilderOpen(true);
}View on GitHub (pinned to a179ffed5b)