{"record":{"id":"cb27553ed3cfcaef","repo":"diegosouzapw/OmniRoute","slug":"circuit-breaker-this-name-is-half-open-no-mo","errorCode":null,"errorMessage":"Circuit breaker \"${this.name}\" is HALF_OPEN, no more probe requests allowed.","messagePattern":"Circuit breaker \"(.+?)\" is HALF_OPEN, no more probe requests allowed\\.","errorType":"error_code","errorClass":"CircuitBreakerOpenError","httpStatus":null,"severity":"error","filePath":"src/shared/utils/circuitBreaker.ts","lineNumber":278,"sourceCode":"    return Math.min(\n      this.resetTimeout * escalationFactor,\n      this.resetTimeout * this.maxBackoffMultiplier\n    );\n  }\n\n  async execute<T>(fn: () => Promise<T>): Promise<T> {\n    this._refreshOpenState();\n\n    if (this.state === STATE.OPEN) {\n      throw new CircuitBreakerOpenError(\n        `Circuit breaker \"${this.name}\" is OPEN. Try again later.`,\n        this.name,\n        this._timeUntilReset()\n      );\n    }\n\n    if (this.state === STATE.HALF_OPEN && this.halfOpenAllowed <= 0) {\n      throw new CircuitBreakerOpenError(\n        `Circuit breaker \"${this.name}\" is HALF_OPEN, no more probe requests allowed.`,\n        this.name,\n        this._timeUntilReset()\n      );\n    }\n\n    if (this.state === STATE.HALF_OPEN) {\n      this.halfOpenAllowed--;\n    }\n\n    try {\n      const result = await fn();\n      this._onSuccess();\n      return result;\n    } catch (error) {\n      if (this.isFailure(error)) {\n        let kind: FailureKind | undefined;\n        if (this.classifyError) {","sourceCodeStart":260,"sourceCodeEnd":296,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/shared/utils/circuitBreaker.ts#L260-L296","documentation":"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).","triggerScenarios":"Thrown at src/shared/utils/circuitBreaker.ts:278 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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)"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}