diegosouzapw/OmniRoute · error · Error

t("proxySubscription.refreshFailed")

Error message

t("proxySubscription.refreshFailed")

What it means

Localized refresh sentinel: the POST to /api/v1/management/proxy-subscriptions/{id}/refresh returned non-ok — the upstream subscription was not re-fetched. Common server-side causes: unreachable subscription URL, parse failure of the downloaded rules, or timeout; the fixed 'refreshFailed' string does not carry them, so check the response body.

Solutions

  1. Verify the subscription URL is reachable from the server
  2. Check the response body/server logs for download or parse errors
  3. Retry the refresh once the upstream source responds
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx:210 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/355999c16318afee. Report an issue: GitHub.

Appendix: source

Thrown at src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx:210

        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ enabled: !sub.enabled }),
      });
      if (!res.ok) throw new Error(t("proxySubscription.toggleFailed"));
      await load();
    } catch (e) {
      setError(e instanceof Error ? e.message : String(e));
    } finally {
      setBusyId(null);
    }
  };

  const refresh = async (sub: SubscriptionRecord) => {
    setBusyId(sub.id);
    try {
      const res = await fetch(`/api/v1/management/proxy-subscriptions/${sub.id}/refresh`, {
        method: "POST",
      });
      if (!res.ok) throw new Error(t("proxySubscription.refreshFailed"));
      await load();
    } catch (e) {
      setError(e instanceof Error ? e.message : String(e));
    } finally {
      setBusyId(null);
    }
  };

  const remove = async (sub: SubscriptionRecord) => {
    if (!window.confirm(t("proxySubscription.confirmDelete", { name: sub.name }))) return;
    setBusyId(sub.id);
    try {
      const res = await fetch(`/api/v1/management/proxy-subscriptions/${sub.id}`, {
        method: "DELETE",
      });
      if (!res.ok) throw new Error(t("proxySubscription.deleteFailed"));
      await load();
    } catch (e) {

View on GitHub (pinned to a179ffed5b)