{"record":{"id":"83b15cbd7559fb90","repo":"diegosouzapw/OmniRoute","slug":"t-tokensdisconnectserverfailed","errorCode":null,"errorMessage":"t(\"tokensDisconnectServerFailed\")","messagePattern":"t\\(\"tokensDisconnectServerFailed\"\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/tokens/page.tsx","lineNumber":260,"sourceCode":"        await fetchData();\n      } else {\n        const data = await res.json().catch(() => null);\n        setServerError(data?.error || t(\"tokensConnectServerFailed\"));\n      }\n    } catch (error) {\n      setServerError(error instanceof Error ? error.message : t(\"tokensConnectServerFailed\"));\n    } finally {\n      setServerLoading(false);\n    }\n  };\n\n  const handleDisconnectServer = async (serverId: string) => {\n    setServerError(\"\");\n    try {\n      const response = await fetch(`/api/gamification/servers?id=${serverId}`, {\n        method: \"DELETE\",\n      });\n      if (!response.ok) throw new Error(t(\"tokensDisconnectServerFailed\"));\n      await fetchData();\n    } catch (error) {\n      setServerError(error instanceof Error ? error.message : t(\"tokensDisconnectServerFailed\"));\n    }\n  };\n\n  return (\n    <div className=\"flex flex-col gap-6\">\n      {/* Balance */}\n      <Card>\n        <div className=\"flex items-center justify-between\">\n          <div>\n            <p className=\"text-sm text-text-muted\">{t(\"tokensTokenBalance\")}</p>\n            <p className=\"text-4xl font-bold mt-1\">{balance.toLocaleString(locale)}</p>\n          </div>\n          <div className=\"text-6xl opacity-20\">🪙</div>\n        </div>\n      </Card>","sourceCodeStart":242,"sourceCodeEnd":278,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/tokens/page.tsx#L242-L278","documentation":"Error \"t(\"tokensDisconnectServerFailed\")\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/tokens/page.tsx:260 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"}