{"record":{"id":"700f208d22cf2c57","repo":"diegosouzapw/OmniRoute","slug":"next-data-error-translateorfallback-tailscale","errorCode":null,"errorMessage":"next.data?.error || translateOrFallback(\"tailscaleEnableFailed\", \"Failed to enable Tailscale Funnel\")","messagePattern":"next\\.data\\?\\.error \\|\\| translateOrFallback\\(\"tailscaleEnableFailed\", \"Failed to enable Tailscale Funnel\"\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx","lineNumber":874,"sourceCode":"\n      if (data?.funnelNotEnabled && data?.enableUrl) {\n        window.open(data.enableUrl, \"tailscale_funnel\", \"width=680,height=780\");\n        setTailscaleNotice({\n          type: \"info\",\n          message: translateOrFallback(\n            \"tailscaleWaitingForFunnel\",\n            \"Enable Funnel for this device in the opened browser tab. OmniRoute will keep polling.\"\n          ),\n        });\n\n        let enabled = null;\n        for (let attempt = 0; attempt < 40; attempt += 1) {\n          await new Promise((resolve) => setTimeout(resolve, 3000));\n          const next = await requestTailscaleEnable({\n            sudoPassword: tailscalePassword || undefined,\n          });\n          if (!next.res.ok) {\n            throw new Error(\n              next.data?.error ||\n                translateOrFallback(\"tailscaleEnableFailed\", \"Failed to enable Tailscale Funnel\")\n            );\n          }\n          if (next.data?.success) {\n            enabled = next;\n            break;\n          }\n          if (!next.data?.funnelNotEnabled) {\n            enabled = next;\n            break;\n          }\n        }\n\n        if (!enabled?.data?.success) {\n          throw new Error(\n            translateOrFallback(\n              \"tailscaleFunnelTimedOut\",","sourceCodeStart":856,"sourceCodeEnd":892,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx#L856-L892","documentation":"Error \"next.data?.error || translateOrFallback(\"tailscaleEnableFailed\", \"Failed to enable Tailscale Funnel\")\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx:874 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}