Skip to content

Ureq transport likely does not handle HTTP 429 and 413 responses #1176

Closed

Description

@szokeasaurusrex

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-429 4xx/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

  1. linear-code commented on Jun 18, 2026

    @linear-code
  2. added
    Bug
    Rust
    on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugRust

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions