deepseek-ai/deepseek-harness · error
[web-runtime] connection lost, retry #${this.attempt}
Error message
[web-runtime] connection lost, retry #${this.attempt} What it means
Error "[web-runtime] connection lost, retry #${this.attempt}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/client/connection/src/client/connection.ts:165
}
if (ac.signal.aborted) throw new Error('generation aborted during readiness handshake')
this.attempt = 0
this.emitState('connected')
// A state sink may synchronously stop this controller. Do not publish
// a description for a generation that no longer exists afterward.
if (this.isGenerationActive(ac)) {
this.callSink(() => { this.sinks.onConnected?.(descriptionResult.value) })
}
} catch {
// Transport failure: treat as generation failure, fall through to the shared backoff.
if (!ac.signal.aborted) ac.abort()
}
await failed
if (!this.isRunning()) return
this.emitState('reconnecting')
this.attempt += 1
console.warn(`[web-runtime] connection lost, retry #${this.attempt}`)
const idle = new AbortController()
await sleep(this.backoffDelay(this.attempt), idle.signal)
}
}
/** Deduplicated state emission (sink isolation applies). */
private emitState(state: ConnectionState): void {
if (this.lastState === state) return
this.lastState = state
this.callSink(() => this.sinks.onStateChange?.(state))
}
private async pumpStream<F extends { type: string }>(
stream: AsyncIterable<RpcRequest<F>>,
sink: ((envelope: RpcRequest<F>) => void) | undefined,
onEnd: () => void,
): Promise<void> {
try {View on GitHub (pinned to b150a551b8)
Solutions
- Check network connectivity and that the server is reachable; restart the client if retries exhaust.
When it happens
Trigger: Thrown at packages/client/connection/src/client/connection.ts:165 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/e57474a0a33dd1e9.
Report an issue: GitHub.