Repository navigation
fix(transport): Handle ureq HTTP error statuses - #1177
Merged
Merged
Conversation
szokeasaurusrex
marked this pull request as ready for review
June 18, 2026 12:43
Previously, ureq returned HTTP 4xx and 5xx responses as send errors, so the transport skipped the response-handling logic for those statuses. As a result, fallback `429` rate-limit handling and `413` payload-too-large logging were not reached. Set `http_status_as_error(false)` on ureq envelope requests so HTTP error statuses return as responses and flow through the existing response handling. Fixes [#1176](#1176) Fixes [RUST-243](https://linear.app/getsentry/issue/RUST-243)
szokeasaurusrex
force-pushed
the
szokeasaurusrex/ureq-status-error-bugfix
branch
from
June 18, 2026 12:53
3d9df5f to
0ee8488
Compare
lcian
approved these changes
Jun 18, 2026
lcian
left a comment
Member
There was a problem hiding this comment.
Good catch, this might've been missed when we bumped ureq to the new major.
This was referenced Jun 24, 2026
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.
Previously, ureq returned HTTP 4xx and 5xx responses as send errors, so the transport skipped the response-handling logic for those statuses. As a result, fallback
429rate-limit handling and413payload-too-large logging were not reached.Set
http_status_as_error(false)on ureq envelope requests so HTTP error statuses return as responses and flow through the existing response handling.Fixes #1176
Fixes RUST-243