deepseek-ai/deepseek-harness · error · Error
${path}.initialDelayMs must be a positive finite number no g
Error message
${path}.initialDelayMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS} What it means
Error "${path}.initialDelayMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/llm/llm/src/retry-policy.ts:128
const ALWAYS_POLICY_KEYS: ReadonlySet<string> = new Set([
'mode', 'maxRetries', 'retryableCodes', 'backoff',
])
const BACKOFF_KEYS: ReadonlySet<string> = new Set(['initialDelayMs', 'maxDelayMs', 'jitterRatio'])
function validateKeys(value: object, allowed: ReadonlySet<string>, path: string): void {
for (const key of Object.keys(value)) {
if (!allowed.has(key)) throw new Error(`${path}: unknown key "${key}"`)
}
}
function resolveBackoff(config: BackoffConfig | undefined, path: string): ResolvedRetryBackoff {
if (config !== undefined) validateKeys(config, BACKOFF_KEYS, path)
const initialDelayMs = config?.initialDelayMs ?? DEFAULT_INITIAL_DELAY_MS
const maxDelayMs = config?.maxDelayMs ?? DEFAULT_MAX_DELAY_MS
const jitterRatio = config?.jitterRatio ?? DEFAULT_JITTER_RATIO
if (!Number.isFinite(initialDelayMs) || initialDelayMs <= 0 || initialDelayMs > MAX_TIMER_DELAY_MS) {
throw new Error(`${path}.initialDelayMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`)
}
if (!Number.isFinite(maxDelayMs) || maxDelayMs <= 0 || maxDelayMs > MAX_TIMER_DELAY_MS) {
throw new Error(`${path}.maxDelayMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`)
}
if (initialDelayMs > maxDelayMs) {
throw new Error(`${path}.initialDelayMs must be less than or equal to maxDelayMs`)
}
if (!Number.isFinite(jitterRatio) || jitterRatio < 0 || jitterRatio > 1) {
throw new Error(`${path}.jitterRatio must be between 0 and 1`)
}
return Object.freeze({ initialDelayMs, maxDelayMs, jitterRatio })
}
/**
* Validate, default, and detach one provider-owned retry policy.
* @param config - optional provider configuration; omission selects normal defaults.
* @param path - diagnostic path naming the provider config that owns the value.View on GitHub (pinned to b150a551b8)
Solutions
- Set initialDelayMs to a positive finite number no greater than the stated timer cap.
When it happens
Trigger: Thrown at packages/llm/llm/src/retry-policy.ts:128 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/764259950682737c.
Report an issue: GitHub.