diegosouzapw/OmniRoute · error · Error

data?.error ||…

Error message

data?.error || translateOrFallback("cloudflaredRequestFailed", "Failed to load Cloudflare tunnel status")

What it means

Thrown when GET /api/tunnels/cloudflared returns non-OK while loading tunnel status; the server error string is preferred with a translateOrFallback default, and silent refreshes should not spam the UI.

Solutions

  1. Verify the cloudflared binary/daemon is installed on the host
  2. Check server logs for the cloudflared status route
  3. Treat silent background refresh failures differently from user-triggered ones
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx:213 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/7d87181b1d926662. Report an issue: GitHub.

Appendix: source

Thrown at src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx:213

  const fetchSearchProviders = async () => {
    try {
      const res = await fetch("/api/search/providers");
      if (res.ok) {
        const data = await res.json();
        setSearchProviders(data.providers || []);
      }
    } catch {
      // Search endpoint may not be available
    }
  };

  const fetchCloudflaredStatus = useCallback(
    async (silent = false) => {
      try {
        const res = await fetch("/api/tunnels/cloudflared", { cache: "no-store" });
        const data = await res.json().catch(() => null);
        if (!res.ok) {
          throw new Error(
            data?.error ||
              translateOrFallback(
                "cloudflaredRequestFailed",
                "Failed to load Cloudflare tunnel status"
              )
          );
        }

        setCloudflaredStatus(data);
        return data as CloudflaredTunnelStatus;
      } catch (error) {
        if (!silent) {
          setCloudflaredNotice({
            type: "error",
            message:
              error instanceof Error
                ? error.message
                : translateOrFallback(

View on GitHub (pinned to a179ffed5b)