diegosouzapw/OmniRoute · error · Error
data.error?.message || data.error || providerText(t, "batchU
Error message
data.error?.message || data.error || providerText(t, "batchUpdateFailed", "Batch update failed")
What it means
Error "data.error?.message || data.error || providerText(t, "batchUpdateFailed", "Batch update failed")" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/providers/[id]/hooks/useProviderConnections.ts:777
};
const handleBatchSetActive = async (isActive: boolean) => {
if (selectedIds.size === 0 || batchUpdating) return;
setBatchUpdating(isActive ? "activate" : "deactivate");
try {
const ids = Array.from(selectedIds);
let updated = 0;
let notFound = 0;
for (let i = 0; i < ids.length; i += MAX_BULK_IDS) {
const chunk = ids.slice(i, i + MAX_BULK_IDS);
const res = await fetch("/api/providers", {
method: "PATCH",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ ids: chunk, isActive }),
});
if (!res.ok) {
const data = await res.json().catch(() => ({}));
throw new Error(
data.error?.message ||
data.error ||
providerText(t, "batchUpdateFailed", "Batch update failed")
);
}
const data = await res.json();
updated += data.updated ?? 0;
notFound += Array.isArray(data.notFound) ? data.notFound.length : 0;
}
await fetchConnections();
if (updated === 0) {
notify.warning(t("batchUpdateNone"));
} else if (notFound > 0) {
notify.warning(t("batchUpdatePartial", { count: updated, skipped: notFound }));
} else {
notify.success(View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/providers/[id]/hooks/useProviderConnections.ts:777 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/4760c2dc4f201efb.
Report an issue: GitHub.