-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Do not retry RPC requests on 4xx errors (#5634)
Any error on a transaction that used capsules was causing a `no capsules available` error, even if unrelated to the capsule. Reason for this is that our remote pxe client was configured by default to retry all failed requests (but not on e2e tests), so the first attempt would raise the actual error and consume the capsule, and all retries would fail since the first request consumed the capsule. Barring actually fixing capsules (still pending), a fix is not retrying a request upon a 4xx error, so we don't unnecessarily hammer the pxe. Note that retries had been originally introduced to handle connectivity errors, I expect that those would not be raised as 4xx's.
- Loading branch information
1 parent
aa0d2e4
commit 5af2b95
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters