Skip to content

build!: Update reqwest to v0.13.1 - #998

Merged
szokeasaurusrex merged 3 commits into
masterfrom
szokeasaurusrex/reqwest-update
Feb 25, 2026
Merged

szokeasaurusrex merged 3 commits into
masterfrom
szokeasaurusrex/reqwest-update

Conversation

@szokeasaurusrex

Copy link
Copy Markdown
Member

Supersedes #958; see that PR's description.

AlexTMjugador and others added 2 commits February 18, 2026 14:43
This fixes a failing doctest.

Co-authored-by: Daniel Szoke <[email protected]>

# Conflicts:
#	Cargo.lock
@szokeasaurusrex szokeasaurusrex changed the title build: Update reqwest to v0.13.1 build!: Update reqwest to v0.13.1 Feb 18, 2026
@csett86 csett86 mentioned this pull request Feb 23, 2026
@szokeasaurusrex szokeasaurusrex linked an issue Feb 24, 2026 that may be closed by this pull request
@szokeasaurusrex
szokeasaurusrex merged commit a819520 into master Feb 25, 2026
23 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/reqwest-update branch February 25, 2026 14:24
lcian added a commit that referenced this pull request Jul 22, 2026
In #998 we upgraded
`reqwest` to `0.13.x`.
We moved from `reqwest/default-tls` to `reqwest/native-tls`. The two
features are not exactly equivalent, as the second one additionally
enables ALPN.

Along with that, we enabled its `http2` feature flag, which was not
enabled by default in `0.12.x`.
The original author of that PR enabled `http2` as a doctest was failing.
Apparently it was failing due to this bug in reqwest
seanmonstar/reqwest#2927, where enabling only
ALPN but not HTTP2 would cause a runtime panic, as the client still
advertised HTTP 2 even though it was compiled without support for it.

Enabling HTTP2 is not a problem for `sentry` itself, but it can be if an
application crate uses `reqwest` (independently) + `sentry`, as
upgrading `sentry` might silently enable HTTP2 on the unified `reqwest`
dependency.

This PR restores the previous protocol feature set by selecting
`native-tls-no-alpn`, and removing `http2`.
It also bumps `reqwest` to `0.13.2` to get the fix for the
aforementioned bug in. Otherwise, if a user has exactly version `0.13.1`
as a direct dependency, and enables ALPN but not HTTP2, the reqwest
transport will run exactly into that bug, and panic.

Close #1057
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.

Update to reqwest^0.13

3 participants