Repository navigation
deps: bump bgpkit-broker to 0.14.2 - #158
Merged
Merged
Conversation
0.14.2 reports the HTTP status and body of a failed broker query, so search can show the API's own message instead of "error decoding response body". The client API used by this crate is unchanged.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the dependency upgrade that improves broker error details.
No open issues 🎉
What changed in this PR
Updates bgpkit-broker to preserve HTTP status and response-body details in monocle search errors, complementing the error propagation added in #157 for #156.
Changes:
- Bumps
bgpkit-brokerfrom 0.10.1 to 0.14.2 without application source changes. - Updates the lockfile with the broker’s new transitive dependencies.
- Documents the improved error messages in the changelog.
| File | Description |
|---|---|
| CHANGELOG.md | Documents the dependency upgrade and improved broker error details. |
| Cargo.toml | Raises the optional bgpkit-broker dependency to 0.14.2. |
| Cargo.lock | Locks the upgraded broker and its transitive dependencies. |
Review effort: Balanced
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #157 / #156.
Why
monocle searchnow fails loudly when the broker API errors (#157), but the message it prints comes from the client crate: this repository pinsbgpkit-broker0.10.1, which decodes an error payload as a success response, so the text waserror decoding response bodyand the API's own explanation was lost.bgpkit-broker0.14.2 checks the status and keeps the body.Change
bgpkit-broker0.10.1 -> 0.14.2 inCargo.toml. The client API this crate uses (BgpkitBroker::new/ts_start/ts_end/page/page_size/collector_id/project/data_type/query_single_page,BrokerItem,BrokerError) is unchanged across the range, so the only source change is the version requirement;Cargo.lockpicks up the new transitive dependencies (reqwest0.12 via the broker client, alongside the 0.13 line oneio already uses).Verified against a local HTTP server that answers every request with the API's 500 body:
Before the bump the same run ended in
BrokerError: error decoding response body, and before #157 it exited 0 with no output.Verification
cargo fmt --checkcargo clippy --all-targets --all-features -- -D warningscargo test --all-features(299 + 21 + 1 + 9 passed)monocle search --broker-filesagainst the live API for a 2019 window still returns its 400 files and exits 0