diegosouzapw/OmniRoute · error

[ARENA_ELO_SYNC] Failed to resolve ARENA_ELO_SYNC_ENABLED fe

Error message

[ARENA_ELO_SYNC] Failed to resolve ARENA_ELO_SYNC_ENABLED feature flag: ${getErrorMessage(error)}

What it means

Error "[ARENA_ELO_SYNC] Failed to resolve ARENA_ELO_SYNC_ENABLED feature flag: ${getErrorMessage(error)}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/arenaEloSync.ts:188

// ─── Periodic sync state ─────────────────────────────────

let syncTimer: ReturnType<typeof setInterval> | null = null;
let lastSyncTime: string | null = null;
let lastSyncModelCount = 0;
let activeSyncIntervalMs = SYNC_INTERVAL_MS;
let firstSyncDone = false;
let syncInProgress = false;

function getErrorMessage(error: unknown): string {
  return error instanceof Error ? error.message : String(error);
}

function getEffectiveArenaEloSyncEnabled(): boolean {
  try {
    return isArenaEloSyncEnabled();
  } catch (error) {
    console.warn(
      `[ARENA_ELO_SYNC] Failed to resolve ARENA_ELO_SYNC_ENABLED feature flag: ${getErrorMessage(
        error
      )}`
    );
    return process.env.ARENA_ELO_SYNC_ENABLED !== "false";
  }
}

// ─── Model name normalization ────────────────────────────

/**
 * Normalize a model name from the Arena leaderboard.
 *
 * Lowercases the name and strips known vendor prefixes
 * (e.g. "anthropic/claude-opus-4" → "claude-opus-4").
 *
 * @param rawName - The raw model name from the API response.
 * @returns The cleaned, lowercase model name.

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/arenaEloSync.ts:188 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/4940a5c26cb81d88. Report an issue: GitHub.