{"record":{"id":"355999c16318afee","repo":"diegosouzapw/OmniRoute","slug":"t-proxysubscription-refreshfailed","errorCode":null,"errorMessage":"t(\"proxySubscription.refreshFailed\")","messagePattern":"t\\(\"proxySubscription\\.refreshFailed\"\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx","lineNumber":210,"sourceCode":"        headers: { \"Content-Type\": \"application/json\" },\n        body: JSON.stringify({ enabled: !sub.enabled }),\n      });\n      if (!res.ok) throw new Error(t(\"proxySubscription.toggleFailed\"));\n      await load();\n    } catch (e) {\n      setError(e instanceof Error ? e.message : String(e));\n    } finally {\n      setBusyId(null);\n    }\n  };\n\n  const refresh = async (sub: SubscriptionRecord) => {\n    setBusyId(sub.id);\n    try {\n      const res = await fetch(`/api/v1/management/proxy-subscriptions/${sub.id}/refresh`, {\n        method: \"POST\",\n      });\n      if (!res.ok) throw new Error(t(\"proxySubscription.refreshFailed\"));\n      await load();\n    } catch (e) {\n      setError(e instanceof Error ? e.message : String(e));\n    } finally {\n      setBusyId(null);\n    }\n  };\n\n  const remove = async (sub: SubscriptionRecord) => {\n    if (!window.confirm(t(\"proxySubscription.confirmDelete\", { name: sub.name }))) return;\n    setBusyId(sub.id);\n    try {\n      const res = await fetch(`/api/v1/management/proxy-subscriptions/${sub.id}`, {\n        method: \"DELETE\",\n      });\n      if (!res.ok) throw new Error(t(\"proxySubscription.deleteFailed\"));\n      await load();\n    } catch (e) {","sourceCodeStart":192,"sourceCodeEnd":228,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx#L192-L228","documentation":"Error \"t(\"proxySubscription.refreshFailed\")\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx:210 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"}