diegosouzapw/OmniRoute · error
[QuotaCache] Refresh failed for ${entry.connectionId.slice(0
Error message
[QuotaCache] Refresh failed for ${entry.connectionId.slice(0, 8)}: What it means
Error "[QuotaCache] Refresh failed for ${entry.connectionId.slice(0, 8)}:" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/domain/quotaCache.ts:706
refreshingSet.add(entry.connectionId);
try {
const connection = await getCachedProviderConnectionById(entry.connectionId);
if (!connection || connection.authType !== "oauth" || !connection.isActive) {
cache.delete(entry.connectionId);
return;
}
const proxyInfo = await resolveProxyForConnection(entry.connectionId);
const usage = await runWithProxyContext(proxyInfo?.proxy || null, () =>
getUsageForProvider(connection)
);
if (usage?.quotas) {
setQuotaCache(entry.connectionId, entry.provider, usage.quotas);
}
} catch (err) {
console.warn(
`[QuotaCache] Refresh failed for ${entry.connectionId.slice(0, 8)}:`,
(err as any)?.message || err
);
} finally {
refreshingSet.delete(entry.connectionId);
}
}
function needsRefresh(entry: QuotaCacheEntry, now: number): boolean {
const age = now - entry.fetchedAt;
if (entry.exhausted) {
if (entry.nextResetAt) {
const resetMs = parseDate(entry.nextResetAt);
if (resetMs !== null && resetMs <= now) return true;
}
return age >= EXHAUSTED_REFRESH_MS;
}
return age >= ACTIVE_TTL_MS;View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/domain/quotaCache.ts:706 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/d1e50933729bee6b.
Report an issue: GitHub.