{"record":{"id":"75bb4d660911087e","repo":"diegosouzapw/OmniRoute","slug":"circuit-breaker-this-name-is-open-try-again","errorCode":null,"errorMessage":"Circuit breaker \"${this.name}\" is OPEN. Try again later.","messagePattern":"Circuit breaker \"(.+?)\" is OPEN\\. Try again later\\.","errorType":"error_code","errorClass":"CircuitBreakerOpenError","httpStatus":null,"severity":"error","filePath":"src/shared/utils/circuitBreaker.ts","lineNumber":270,"sourceCode":"   * Get the effective reset timeout, escalated by open cycle count.\n   * Each open→half_open→open cycle multiplies the timeout.\n   */\n  _effectiveResetTimeout(): number {\n    if (this.openCycleCount <= this.backoffEscalationCount) {\n      return this.resetTimeout;\n    }\n    const escalationFactor = Math.pow(2, this.openCycleCount - this.backoffEscalationCount);\n    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","sourceCodeStart":252,"sourceCodeEnd":288,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/shared/utils/circuitBreaker.ts#L252-L288","documentation":"Error \"Circuit breaker \"${this.name}\" is OPEN. Try again later.\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/shared/utils/circuitBreaker.ts:270 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}