Repository navigation
chore(deps): Update ureq requirement from 2 to 3 - #5
Merged
Merged
Conversation
dependabot
Bot
force-pushed
the
dependabot/cargo/ureq-3
branch
from
July 21, 2026 07:36
57c6488 to
fd9d283
Compare
ureq 3 reshaped the request/response API: `AgentBuilder` became `Agent::config_builder()` (+ `Agent::new_with_config`), `.set()` became `.header()`, `.send_string()` became `.send()`, and the response body now comes from `.into_body().read_to_string()`. The consequential change is error handling. ureq 3 reports 4xx/5xx as `Error::StatusCode(u16)`, which carries only the code — porting it literally would have silently dropped both the API error body and the `retry-after` header that drives Anthropic's backoff. Both agents therefore set `http_status_as_error(false)` and dispatch on status explicitly. `retry_decision` already returns `None` for anything that isn't 429/5xx, so a non-200 below 400 keeps its old non-retryable behaviour and every user-facing error message is unchanged. The transport had no automated coverage, which is why the regression above would not have been caught. Add two tests that drive a real loopback socket: one pinning the request line, headers and JSON body on a 200, one asserting a 404 still surfaces its response body — the latter fails if `http_status_as_error` is left at its default. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mdoering
force-pushed
the
dependabot/cargo/ureq-3
branch
from
July 21, 2026 07:53
fd9d283 to
677262c
Compare
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.
Updates the requirements on ureq to permit the latest version.
Changelog
Sourced from ureq's changelog.
... (truncated)
Commits
b2adbf03.3.07662219Bump MSRV 1.71 -> 1.85, edition 2024eb51f2c3.2.1ad49981Bump deps to fix cargo-deny RUSTSEC08785cbSwitch out utf-8 crate with utf8-zero9ef2153Clarify that json feature is disabled by defaulteb2539dFix misleading unsafe wording in crate docsb45d3d2Fix cargo-deny advisory failures852b8043.2.0378f768Update deny.toml given current dependencies