forked from bnb-chain/greenfield-cometbft-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn non-200 HTTP responses into an error instead of trying to parse …
…the body as a JSON-RPC response (#1361) * Turn non-200 HTTP responses into an error instead of trying to parse the body as a JSON-RPC response * `Url::authority(&self)` requires `url` >=2.4.1 * Feature guard status code in `HttpRequestFailed` error variant When the `reqwest` feature is disabled, this now falls back to `NonZeroU16`, even though that variant is never actually created. A better solution would be to feature-guard the error variant itself, but thats not supported by `flex-error` at the moment. * Add changelog entry
- Loading branch information
Showing
4 changed files
with
34 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `[tendermint-rpc]` Turn non-200 HTTP response into an error | ||
instead of trying to parse the body as a JSON-RPC response | ||
([\#1359](https://github.com/informalsystems/tendermint-rs/issues/1359)) |
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