Skip to content

deps: bump bgpkit-broker to 0.14.2 - #158

Merged
digizeph merged 1 commit into
mainfrom
deps/bgpkit-broker-0.14
Nov 2, 2026
Merged

digizeph merged 1 commit into
mainfrom
deps/bgpkit-broker-0.14

Conversation

@digizeph

@digizeph digizeph commented Nov 2, 2026

Copy link
Copy Markdown
Member

Follow-up to #157 / #156.

Why

monocle search now fails loudly when the broker API errors (#157), but the message it prints comes from the client crate: this repository pins bgpkit-broker 0.10.1, which decodes an error payload as a success response, so the text was error decoding response body and the API's own explanation was lost. bgpkit-broker 0.14.2 checks the status and keeps the body.

Change

bgpkit-broker 0.10.1 -> 0.14.2 in Cargo.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.lock picks up the new transitive dependencies (reqwest 0.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:

$ BGPKIT_BROKER_URL=http://127.0.0.1:8099 monocle search -t 2019-04-20T00:00:00Z -T 2019-04-21T00:00:00Z -p 1.1.1.0/24 -D rib
Error: broker query failed (page 1: BrokerError: broker API returned HTTP 500 Internal Server Error: {"error": "Failed to fetch search results", "message": "All deployment instances are down: ..."}); search aborted.
$ echo $?
1

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 --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features (299 + 21 + 1 + 9 passed)
  • monocle search --broker-files against the live API for a 2019 window still returns its 400 files and exits 0

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.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 13:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-broker from 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

@digizeph
digizeph merged commit 866b621 into main Nov 2, 2026
2 checks passed
@digizeph
digizeph deleted the deps/bgpkit-broker-0.14 branch November 2, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants