diegosouzapw/OmniRoute · error
[ARENA_ELO_SYNC] Failed to fetch
Error message
[ARENA_ELO_SYNC] Failed to fetch "${category}" leaderboard: ${message} What it means
arenaEloSync leaderboard fetch warning: fetching one Arena leaderboard category failed — non-200 status (message includes status/statusText) or invalid JSON in the response body. The sync skips/aborts that category's data.
Solutions
- Check outbound access to the Arena API endpoint
- Retry — transient 5xx/network errors are common
- Verify the API response shape has not changed
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/lib/arenaEloSync.ts:255 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/ad43a36657b9760e.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/arenaEloSync.ts:255
const response = await fetch(url, {
signal: AbortSignal.timeout(30000),
});
if (!response.ok) {
throw new Error(
`Arena API fetch failed for "${category}" [${response.status}]: ${response.statusText}`
);
}
const text = await response.text();
try {
result[category] = JSON.parse(text) as ArenaLeaderboardData;
} catch {
throw new Error(
`Arena API returned invalid JSON for "${category}" (${text.slice(0, 100)}...)`
);
}
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
console.warn(`[ARENA_ELO_SYNC] Failed to fetch "${category}" leaderboard: ${message}`);
errors.push(message);
}
});
await Promise.all(fetches);
if (Object.keys(result).length === 0) {
throw new Error(`All Arena leaderboard fetches failed: ${errors.join("; ")}`);
}
return result;
}
// ─── Core: Transform ─────────────────────────────────────
/**
* Compute confidence level based on vote count.
*View on GitHub (pinned to a179ffed5b)