diegosouzapw/OmniRoute · error · Error

Eval load failed

Error message

Eval load failed

What it means

Bare load sentinel in EvalsTab: a fetch of eval data (suites/dashboard, e.g. GET /api/evals) failed or returned non-ok, and the fixed 'Eval load failed' message is surfaced. The suites list and run history were not populated; the string carries no detail — the cause must be read from the response or network state.

Solutions

  1. Check the request status in the network tab — 401/403 session, 5xx server
  2. Confirm the evals API is enabled in this build
  3. Retry the load; the dashboard stays empty until a 200 arrives
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx:463 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/59f09cb8fac4f0b9. Report an issue: GitHub.

Appendix: source

Thrown at src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx:463

  const [runningAll, setRunningAll] = useState(false);
  const [runProgress, setRunProgress] = useState<RunAllProgress | null>(null);
  const [search, setSearch] = useState("");
  const [expanded, setExpanded] = useState<string | null>(null);
  const [expandedResults, setExpandedResults] = useState<Set<string>>(new Set());
  const [showHowItWorks, setShowHowItWorks] = useState(false);
  const [isBuilderOpen, setIsBuilderOpen] = useState(false);
  const [suiteDraft, setSuiteDraft] = useState<EvalSuiteDraft>(createEmptySuiteDraft());
  const [savingSuite, setSavingSuite] = useState(false);
  const [deletingSuiteId, setDeletingSuiteId] = useState<string | null>(null);

  useEffect(() => {
    let isMounted = true;

    async function loadDashboard() {
      try {
        const response = await fetch("/api/evals");
        if (!response.ok) {
          throw new Error("Eval load failed");
        }

        const payload = (await response.json()) as EvalsDashboardPayload;
        if (!isMounted) return;

        setSuites(Array.isArray(payload.suites) ? payload.suites : []);
        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 : []);
      } catch {
        if (isMounted) {
          notify.error(t("notifyEvalLoadFailed"));
        }
      } finally {
        if (isMounted) {
          setLoading(false);
        }

View on GitHub (pinned to a179ffed5b)