diegosouzapw/OmniRoute · error · Error
t("proxySubscription.loadFailed")
Error message
t("proxySubscription.loadFailed") What it means
Localized load sentinel ('proxySubscription.loadFailed'): the GET to /api/v1/management/proxy-subscriptions returned non-ok, so the subscription list was not (re)loaded. The localized message replaces the raw status — the actual cause (auth, management API down, DB read failure) must be read from the response.
Solutions
- Check the GET status/body — 401/403 means the management session expired
- Confirm the proxy management API route is healthy
- Retry the load; the list stays empty until it succeeds
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx:91 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/c4169cb34b125151.
Report an issue: GitHub.
Appendix: source
Thrown at src/app/(dashboard)/dashboard/settings/components/proxy/SubscriptionTab.tsx:91
}
return raw;
},
[t]
);
const [busyId, setBusyId] = useState<string | null>(null);
const [showForm, setShowForm] = useState(false);
const [editingId, setEditingId] = useState<string | null>(null);
const [form, setForm] = useState<FormState>(EMPTY_FORM);
const [saving, setSaving] = useState(false);
const [formError, setFormError] = useState<string | null>(null);
const load = useCallback(async () => {
setLoading(true);
setError(null);
try {
const res = await fetch("/api/v1/management/proxy-subscriptions");
if (!res.ok) throw new Error(t("proxySubscription.loadFailed"));
const data = await res.json();
setSubs(Array.isArray(data.items) ? data.items : []);
} catch (e) {
setError(e instanceof Error ? e.message : String(e));
} finally {
setLoading(false);
}
}, [t]);
const loadProviders = useCallback(async () => {
try {
const res = await fetch("/api/providers");
if (!res.ok) return;
const data = await res.json();
const connections = Array.isArray(data.connections) ? data.connections : [];
setProviders(
connections.map((c: Record<string, unknown>) => ({
id: String(c.id),View on GitHub (pinned to a179ffed5b)