You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ureq transport likely does not handle HTTP 429 and 413 responses #1176
UreqHttpTransport likely does not run its HTTP-status-specific handling for Sentry error responses because ureq defaults http_status_as_error to true. The transport currently sends with agent.post(...).send(...), then handles rate-limit headers, fallback HTTP 429, and HTTP 413 payload-too-large logging only in the Ok(response) branch. With ureq's default behavior, HTTP 4xx/5xx statuses can instead return Err(ureq::Error::StatusCode(code)), so fallback rate-limit updates for 429 and the existing payload-too-large debug message for 413 likely do not work with the default agent. See the current ureq transport response handling in sentry/src/transports/ureq.rs.
This also affects #1153. That issue needs reliable status classification so 413 and other non-4294xx/5xx responses can record send_error, while 429 continues to update rate limits without recording a client-report loss. We should fix the ureq status handling first, then implement #1153 on top of the corrected response path.
Activity
linear-code commentedon Jun 18, 2026
RUST-243
fix(transport): Handle ureq HTTP error statuses
fix(transport): Handle ureq HTTP error statuses (getsentry#1177)