diegosouzapw/OmniRoute · error

[ARENA_ELO_SYNC] Sync failed:

Error message

[ARENA_ELO_SYNC] Sync failed:

What it means

arenaEloSync top-level failure: syncArenaElo caught an unexpected error anywhere in the pipeline (fetch, transform, backup, or write) and returned success:false with the message. The periodic timer keeps running and will retry next interval.

Solutions

  1. Inspect the logged message to locate the failing stage
  2. Fix the root cause (network, DB, schema drift)
  3. Wait for the next scheduled sync or trigger manually
Defensive patterns

Strategy: retry

When it happens

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

Appendix: source

Thrown at src/lib/arenaEloSync.ts:429

    if (!dryRun) {
      lastSyncTime = new Date().toISOString();
      lastSyncModelCount = entries.length;
    }

    const countLabel = dryRun ? "would sync" : "synced";
    console.log(
      `[ARENA_ELO_SYNC] ${countLabel} ${entries.length} model intelligence entries from Arena leaderboards`
    );

    return {
      success: true,
      modelCount: entries.length,
      source: "arena_elo",
    };
  } catch (err) {
    const message = err instanceof Error ? err.message : String(err);
    console.warn("[ARENA_ELO_SYNC] Sync failed:", message);
    return {
      success: false,
      modelCount: 0,
      source: "arena_elo",
      error: message,
    };
  } finally {
    syncInProgress = false;
  }
}

// ─── Clear synced data ───────────────────────────────────

/**
 * Clear all synced intelligence data (arena_elo source).
 *
 * Iterates through all arena_elo entries and deletes them one by one,
 * since the DB module provides per-key deletion. This is used by the

View on GitHub (pinned to a179ffed5b)