Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- Add layer class filtering for views used in multiple contexts (e.g., SwiftUI._UIGraphicsView)
- Improve transform calculations for views with custom anchor points
- Fix axis-aligned transform detection for optimized opaque view clipping
- Fix issue where a too-large breadcrumb would prevent future errors and messages from being uploaded (#6617)

### Improvements

Expand Down
7 changes: 7 additions & 0 deletions Sources/Sentry/SentryHttpTransport.m
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,13 @@ - (void)sendEnvelope:(SentryEnvelope *)envelope
return;
}

if (response.statusCode >= 400 && response.statusCode < 500) {
SENTRY_LOG_DEBUG(@"Received 4xx response code: %li", (long)response.statusCode);
// 4xx means the payload is bad and will not succeed on retry. Drop it on the floor and enable sending the next one.
[weakSelf deleteEnvelopeAndSendNext:envelopePath];
return;
}

SENTRY_LOG_DEBUG(@"Received non-200 response code: %li", (long)response.statusCode);
[weakSelf finishedSending];
}];
Expand Down