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/radar/setup/page.tsx:81

  // Fetch catalog to find the provider's setup data
  useEffect(() => {
    if (!provider) {
      setLoading(false);
      return;
    }

    async function load() {
      try {
        const [res, connectionsRes] = await Promise.all([
          fetch("/api/radar/catalog"),
          fetch(providerConnectionsRequestUrl(provider)),
        ]);
        if (res.status === 404) {
          setError(t("flagDisabled"));
          setLoading(false);
          return;
        }
        if (!res.ok) throw new Error(`HTTP ${res.status}`);
        if (!connectionsRes.ok) throw new Error(`HTTP ${connectionsRes.status}`);
        const data = await res.json();
        const connectionsData = (await connectionsRes.json()) as {
          connections?: RadarSetupConnection[];
        };

        // Find ALL entries for this provider and extract setup from the first one that has it
        const providerEntries = data.entries.filter(
          (e: { provider: string }) => e.provider === provider
        );

        if (providerEntries.length === 0) {
          setError(t("providerNotFound", { provider }));
          setLoading(false);
          return;
        }

        // Find setup info from feed entries (they carry the setup field)

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/radar/setup/page.tsx:81 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/712ba5ee75a3ecd4. Report an issue: GitHub.