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/providers/services/components/DarioAccountPanel.tsx:93

  const [codeInput, setCodeInput] = useState("");
  const [busy, setBusy] = useState<null | "start" | "complete">(null);
  const [notice, setNotice] = useState<string | null>(null);

  const [omniConnections, setOmniConnections] = useState<OmniConnection[]>([]);
  const [omniLoading, setOmniLoading] = useState(false);
  const [importBusyId, setImportBusyId] = useState<string | null>(null);

  const refreshAccounts = useCallback(async () => {
    setLoading(true);
    setError(null);
    try {
      const res = await fetch("/api/services/dario/admin/accounts");
      const json = (await res.json().catch(() => null)) as {
        accounts?: DarioAccount[];
        error?: string;
      } | null;
      if (!res.ok) {
        throw new Error(json?.error || `HTTP ${res.status}`);
      }
      setAccounts(Array.isArray(json?.accounts) ? json!.accounts : []);
    } catch (err) {
      setError(err instanceof Error ? err.message : String(err));
    } finally {
      setLoading(false);
    }
  }, []);

  const refreshOmniConnections = useCallback(async () => {
    setOmniLoading(true);
    try {
      const res = await fetch("/api/services/dario/admin/import-from-omniroute");
      const json = (await res.json().catch(() => null)) as {
        connections?: OmniConnection[];
        error?: string;
      } | null;
      if (res.ok) {

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/providers/services/components/DarioAccountPanel.tsx:93 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/0c41db0990b9aecc. Report an issue: GitHub.