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/page.tsx:126

  const [hasSupporterKey, setHasSupporterKey] = useState(false);
  const [supporterKeyMasked, setSupporterKeyMasked] = useState<string | null>(null);
  const [showKeyForm, setShowKeyForm] = useState(false);
  // Fetch catalog
  const fetchCatalog = useCallback(
    async (showLoading = true) => {
      if (showLoading) setLoading(true);
      setError("");
      try {
        const res = await fetch("/api/radar/catalog", { cache: "no-store" });
        if (res.status === 404) {
          // Flag off — treat as not found
          setFeatureAvailable(false);
          setEntries([]);
          setMeta(null);
          if (showLoading) setLoading(false);
          return;
        }
        if (!res.ok) throw new Error(`HTTP ${res.status}`);
        setFeatureAvailable(true);
        const data = await res.json();
        setEntries(data.entries || []);
        setMeta(data.meta || null);
      } catch (err) {
        setError(err instanceof Error ? err.message : t("errorLoading"));
      } finally {
        if (showLoading) setLoading(false);
      }
    },
    [t]
  );
  const refreshCatalogSilently = useCallback(() => fetchCatalog(false), [fetchCatalog]);

  // D28 — fetch the referral links section ("Pegue seus créditos grátis").
  // Best-effort: flag off => 404, no cache => empty shape; either way this
  // never blocks rendering of the rest of the page.
  const fetchReferrals = useCallback(async () => {

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/radar/page.tsx:126 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/9f6c392b345f47bd. Report an issue: GitHub.