diegosouzapw/OmniRoute · error · Error
translateOrFallback("tailscaleInstallFailed", "Failed to…
Error message
translateOrFallback("tailscaleInstallFailed", "Failed to install Tailscale") What it means
handleTailscaleInstall's early guard: the POST to /api/tunnels/tailscale/install returned a response with no body (no SSE stream to read installation progress from); translateOrFallback('tailscaleInstallFailed', ...) is thrown before any stream parsing begins.
Solutions
- Check that the install route supports SSE streaming and is not blocked
- Verify sudo password/privileges if required
- Inspect the response status for 4xx vs 5xx triage
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx:988 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/84272d06b7fc8a5c.
Report an issue: GitHub.
Appendix: source
Thrown at src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx:988
setTailscaleBusy(false);
await fetchTailscaleStatus(true);
}
}, [fetchTailscaleStatus, tailscalePassword, translateOrFallback]);
const handleTailscaleInstall = useCallback(async () => {
setTailscaleInstallBusy(true);
setTailscaleInstallLog([]);
setTailscaleNotice(null);
try {
const res = await fetch("/api/tunnels/tailscale/install", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ sudoPassword: tailscalePassword || undefined }),
});
if (!res.body) {
throw new Error(
translateOrFallback("tailscaleInstallFailed", "Failed to install Tailscale")
);
}
const reader = res.body.getReader();
const decoder = new TextDecoder();
let buffer = "";
let installSucceeded = false;
while (true) {
const { done, value } = await reader.read();
if (done) break;
buffer += decoder.decode(value, { stream: true });
const parts = buffer.split("\n\n");
buffer = parts.pop() || "";
for (const part of parts) {
const lines = part.split("\n");View on GitHub (pinned to a179ffed5b)