diegosouzapw/OmniRoute · error · Error
Version check returned
Error message
Version check returned ${versionRes.status} What it means
In HomePageClient's update-flow polling loop, the /api/system/version fetch returned non-OK while waiting for the update to apply; the status is embedded and the attempt throws so the polling loop's catch can count/retry it (up to maxAttempts).
Solutions
- Wait — the loop retries automatically every 5s until maxAttempts
- Check the server log for why /api/system/version is failing (restart in progress is common)
- If 404/401 persists after update, verify the API route exists in the new build
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/HomePageClient.tsx:569 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/6c3acc9b137abc58.
Report an issue: GitHub.
Appendix: source
Thrown at src/app/(dashboard)/dashboard/HomePageClient.tsx:569
},
{
step: "restart",
status: "pending",
message: t("updateWaitingRestart"),
},
];
setUpdateSteps(initialSteps);
const maxAttempts = channel === "docker-compose" ? 72 : 36;
for (let attempt = 0; attempt < maxAttempts; attempt += 1) {
await wait(5000);
try {
const versionRes = await fetch("/api/system/version", { cache: "no-store" });
if (!versionRes.ok) {
throw new Error(`Version check returned ${versionRes.status}`);
}
const latestInfo = await versionRes.json();
setVersionInfo(latestInfo);
if (latestInfo.current === targetVersion) {
setUpdateSteps((prev) => {
let next = prev.map((step) => {
if (step.step === "install" || step.step === "rebuild" || step.step === "restart") {
return { ...step, status: "done" };
}
return step;
});
next = mergeUpdateStep(next, {
step: "complete",
status: "done",
message: t("updateRunning", { version: targetVersion }),View on GitHub (pinned to a179ffed5b)