diegosouzapw/OmniRoute · error · Error

comboHealthFetchFailed

Error message

comboHealthFetchFailed

What it means

ComboHealthTab's loader received a non-OK response from /api/usage/combo-health-dashboard (range/horizon query) and threw the localized 'comboHealthFetchFailed' key. Sent purely to the analytics UI error state — retry/forecast/autopilot sub-states were reset before the fetch, so the whole tab shows the error.

Solutions

  1. Check the combo-health endpoint for the requested range/horizon params
  2. Surface res.status alongside the translated message for faster triage
  3. Retry transient 5xx before failing the tab
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/analytics/ComboHealthTab.tsx:825 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/d2f82da302dabaa5. Report an issue: GitHub.

Appendix: source

Thrown at src/app/(dashboard)/dashboard/analytics/ComboHealthTab.tsx:825

        setRetrying(true);
      } else {
        setLoading(true);
      }
      setError(null);
      setForecastError(null);
      setAutopilotError(null);
      setScoringError(null);

      try {
        const response = await fetch(
          `/api/usage/combo-health-dashboard?range=${range}&horizon=${horizon}`,
          {
            signal: controller.signal,
          }
        );

        if (!response.ok) {
          throw new Error(t("comboHealthFetchFailed"));
        }

        const result = (await response.json()) as ComboHealthDashboardResponse;
        setData(result.health);
        setError(null);
        setForecastData(result.forecast);
        setAutopilotData(result.autopilot);
        setScoringData(result.scoring);
        setForecastError(result.errors.forecast ?? null);
        setAutopilotError(result.errors.autopilot ?? null);
        setScoringError(result.errors.scoring ?? null);
      } catch (fetchError) {
        if ((fetchError as Error).name === "AbortError") {
          return;
        }
        setError(fetchError instanceof Error ? fetchError.message : t("unknownError"));
        if (!isRetry) setData(null);
      } finally {

View on GitHub (pinned to a179ffed5b)