You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error that is thrown when an RPC endpoint responds with too many 5xx
errors in a row — causing the underlying circuit to break — is too
cryptic for end users. This commit rewords it to be more friendly and
recommend that users switch to another endpoint. It also logs the
original Cockatiel error so that users can inspect DevTools to learn
more.
- Old error: "Execution prevented because the circuit breaker is open"
- New error: "RPC endpoint returned too many errors, retrying in X
minutes. Consider using a different RPC endpoint."
Copy file name to clipboardExpand all lines: packages/controller-utils/CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Add `circuitBreakDuration` to the object returned by `createServicePolicy` ([#6423](https://github.com/MetaMask/core/pull/6423))
13
+
- This is the amount of time that the underlying circuit breaker policy will pause execution of the input function while the circuit is broken.
14
+
- Add `getRemainingCircuitOpenDuration` to the object returned by `createServicePolicy` ([#6423](https://github.com/MetaMask/core/pull/6423))
15
+
- This returns the amount of time after which the underlying circuit breaker policy will resume execution of the input function after the circuit reopens.
Copy file name to clipboardExpand all lines: packages/network-controller/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Changed
11
11
12
12
- Bump `@metamask/base-controller` from `^8.1.0` to `^8.3.0` ([#6355](https://github.com/MetaMask/core/pull/6355), [#6465](https://github.com/MetaMask/core/pull/6465))
13
+
- Rephrase "circuit broken" errors so they are more user-friendly ([#6423](https://github.com/MetaMask/core/pull/6423))
14
+
- These are errors produced when a request is made to an RPC endpoint after it returns too many consecutive 5xx responses and the underlying circuit is open.
0 commit comments