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
Commit 9054d65
Browse filesBrowse the repository at this point in the historyBrowse files
fix(transport): Handle HTTP 413 with actionable log and use send_error for HTTP errors (#5115)
* fix(transport): Handle HTTP 413 with actionable log and use send_error for HTTP errors
Log a specific, actionable error message when Relay returns HTTP 413
(Content Too Large) instead of the generic "Request failed" message.
The message suggests reducing event/breadcrumb/attachment sizes and
mentions the `SentryOptions.onOversizedEvent` callback.
Also switch the client report discard reason for all HTTP 4xx/5xx
errors (except 429) from `network_error` to `send_error`, matching
the client reports spec and aligning with sentry-python and
sentry-cocoa.
FixesGH-5050
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: Add changelog entry for HTTP 413 handling
Co-Authored-By: Claude <noreply@anthropic.com>
* remove duplicate log message
* Update changelog for client report discard reason
Switch client report discard reason for HTTP 4xx/5xx errors.
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@
31
31
### Fixes
32
32
33
33
- Fix crash when unregistering `SystemEventsBroadcastReceiver` with try-catch block. ([#5106](https://github.com/getsentry/sentry-java/pull/5106))
34
+
- Log an actionable error message when Relay returns HTTP 413 (Content Too Large) ([#5115](https://github.com/getsentry/sentry-java/pull/5115))
35
+
- Also switch the client report discard reason for all HTTP 4xx/5xx errors (except 429) from `network_error` to `send_error`
34
36
- Trim DSN string before parsing to avoid `URISyntaxException` caused by trailing whitespace ([#5113](https://github.com/getsentry/sentry-java/pull/5113))
Copy file name to clipboardExpand all lines: sentry-apache-http-client-5/src/test/kotlin/io/sentry/transport/apache/ApacheHttpClientTransportClientReportTest.kt
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ class ApacheHttpClientTransportClientReportTest {
0 commit comments