Skip to content

Commit c7b5b48

Browse files
committed
ref(server): Return status code 413 if envelope is rejected due to size limits
1 parent de099f6 commit c7b5b48

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Increases log size limits to better support log drains. ([#5441](https://github.com/getsentry/relay/pull/5441))
99
- Add functionality to process and store span attachments. ([#5423](https://github.com/getsentry/relay/pull/5423), [#5363](https://github.com/getsentry/relay/pull/5363))
1010
- Apply existing cookie rules to `http.request.header.cookie.<key>` fields. ([#5456](https://github.com/getsentry/relay/pull/5456))
11+
- Return status code `413` if a request is rejected due to size limits. ([#5473](https://github.com/getsentry/relay/pull/5473))
1112
- Add functionality to process and store trace attachments. ([#5457](https://github.com/getsentry/relay/pull/5457))
1213

1314
**Bug Fixes**:

relay-server/src/endpoints/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl IntoResponse for BadStoreRequest {
133133
// now executed asynchronously in `EnvelopeProcessor`.
134134
(StatusCode::FORBIDDEN, body).into_response()
135135
}
136+
BadStoreRequest::Overflow(_) => (StatusCode::PAYLOAD_TOO_LARGE, body).into_response(),
136137
_ => {
137138
// In all other cases, we indicate a generic bad request to the client and render
138139
// the cause. This was likely the client's fault.

0 commit comments

Comments
 (0)