diegosouzapw/OmniRoute · error · Error

typeof payload.error === "string" ? payload.error …

Error message

typeof payload.error === "string" ? payload.error : translateOrFallback("tailscaleInstallFailed", "Failed to install Tailscale")

What it means

While consuming the install endpoint's SSE stream, a non-progress event carried a payload whose error was not a string, so the message degrades to translateOrFallback('tailscaleInstallFailed', ...). installSucceeded stays false, so the post-stream check treats the install as failed.

Solutions

  1. Inspect the streamed progress log shown in the UI for the failing step
  2. Verify install prerequisites (network, privileges, distro support)
  3. Retry the install after fixing the environment
Defensive patterns

Strategy: fallback

When it happens

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

Appendix: source

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

              payload = JSON.parse(line.slice(6));
            }
          }

          if (!payload) continue;

          if (eventName === "progress") {
            const message =
              typeof payload.message === "string"
                ? payload.message
                : translateOrFallback("tailscaleInstallProgress", "Working...");
            setTailscaleInstallLog((current) => [...current.slice(-79), message]);
          } else if (eventName === "done") {
            installSucceeded = true;
            if (payload.status) {
              setTailscaleStatus(payload.status as TailscaleTunnelStatus);
            }
          } else if (eventName === "error") {
            throw new Error(
              typeof payload.error === "string"
                ? payload.error
                : translateOrFallback("tailscaleInstallFailed", "Failed to install Tailscale")
            );
          }
        }
      }

      if (!installSucceeded) {
        throw new Error(
          translateOrFallback("tailscaleInstallFailed", "Failed to install Tailscale")
        );
      }

      setShowTailscaleInstallModal(false);
      setTailscalePassword("");
      setTailscaleNotice({
        type: "success",

View on GitHub (pinned to a179ffed5b)