Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Missing DefaultBodyLimit breaks raw minidump uploads over 2MiB
- Restored
DefaultBodyLimit::disable()on the minidump route so the rawBytesextractor no longer enforces axum’s 2 MiB default and correctly relies on the configured request body limit layer.
- Restored
Or push these changes by commenting:
@cursor push e673fd0694
Preview (e673fd0694)
diff --git a/relay-server/src/endpoints/minidump.rs b/relay-server/src/endpoints/minidump.rs
--- a/relay-server/src/endpoints/minidump.rs
+++ b/relay-server/src/endpoints/minidump.rs
@@ -1,5 +1,5 @@
use axum::RequestExt;
-use axum::extract::Request;
+use axum::extract::{DefaultBodyLimit, Request};
use axum::response::IntoResponse;
use axum::routing::{MethodRouter, post};
use bytes::Bytes;
@@ -283,6 +283,7 @@
pub fn route(config: &Config) -> MethodRouter<ServiceState> {
post(handle)
+ .route_layer(DefaultBodyLimit::disable())
.route_layer(RequestBodyLimitLayer::new(config.max_attachments_size()))
.route_layer(axum::middleware::from_fn(middlewares::content_length))
}This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 462f13f. Configure here.
jjbayer
reviewed
Apr 14, 2026
Dav1dde
reviewed
Apr 15, 2026
jjbayer
approved these changes
Apr 16, 2026
constantinius
pushed a commit
that referenced
this pull request
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Limit the request body using
RequestBodyLimitLayerinstead ofDefaultBodyLimitwhich doesn't support streaming requests. Remove the overall multipart stream size limit as it becomes obsolete with this change.Fixes https://linear.app/getsentry/issue/INGEST-760/playstation-body-limit-mismatch