diegosouzapw/OmniRoute · error · CircuitBreakerOpenError
Circuit breaker " " is HALF_OPEN, no more probe requests…
Error message
Circuit breaker "${this.name}" is HALF_OPEN, no more probe requests allowed. What it means
CircuitBreakerOpenError thrown by execute() in the HALF_OPEN state when the probe allowance (halfOpenAllowed) is already consumed: the reset window elapsed, trial calls are being let through, but this caller arrived after the probe slots were taken. Calls remain shed until the probe succeeds (breaker closes) or fails (reopens).
Solutions
- Retry after a short delay — if the probe succeeds the breaker closes and normal traffic resumes
- Route the request to a fallback provider in the meantime
- Avoid exceeding the configured half-open probe concurrency; it is intentionally tiny
- Check provider health if HALF_OPEN persists (probe keeps failing and reopening)
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/shared/utils/circuitBreaker.ts:278 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/cb27553ed3cfcaef.
Report an issue: GitHub.
Appendix: source
Thrown at src/shared/utils/circuitBreaker.ts:278
return Math.min(
this.resetTimeout * escalationFactor,
this.resetTimeout * this.maxBackoffMultiplier
);
}
async execute<T>(fn: () => Promise<T>): Promise<T> {
this._refreshOpenState();
if (this.state === STATE.OPEN) {
throw new CircuitBreakerOpenError(
`Circuit breaker "${this.name}" is OPEN. Try again later.`,
this.name,
this._timeUntilReset()
);
}
if (this.state === STATE.HALF_OPEN && this.halfOpenAllowed <= 0) {
throw new CircuitBreakerOpenError(
`Circuit breaker "${this.name}" is HALF_OPEN, no more probe requests allowed.`,
this.name,
this._timeUntilReset()
);
}
if (this.state === STATE.HALF_OPEN) {
this.halfOpenAllowed--;
}
try {
const result = await fn();
this._onSuccess();
return result;
} catch (error) {
if (this.isFailure(error)) {
let kind: FailureKind | undefined;
if (this.classifyError) {View on GitHub (pinned to a179ffed5b)