Repository navigation
Conversation
`sentry__attachment_validate()` rejected attachments over 1 GiB. That matched Relay's former `max_upload_size` default. When Relay introduced the upload endpoint, it only accepted the file as the body of the creation request, so the client was already sending an oversized file by the time Relay rejected it. Since getsentry/relay#5685, Relay accepts a bodiless TUS creation request followed by `PATCH` uploads, which is the flow the SDK uses. The creation request declares `Upload-Length`, and Relay rejects anything above `max_upload_size` with `413` before any attachment data is sent. The SDK then drops the attachment-ref item, records a client report, and sends the rest of the envelope. getsentry/relay#6515 raised the default `max_upload_size` to 10 GiB, leaving the SDK-side copy out of sync. Leave the size limit to the server.
The note named `projects:relay-upload-endpoint`, which Relay removed when the upload endpoint became generally available in getsentry/relay#6171. The remaining upload flags are temporary rollout flags: `projects:resumable-uploads` makes uploads resumable, and `projects:relay-minidump-uploads` gates minidump uploads. Naming them in the API docs would go stale the same way.
mujacica
approved these changes
Nov 27, 2026
This branch has not been deployed
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.
Drop the outdated SDK-side 1 GiB TUS upload limit (
SENTRY_MAX_ATTACHMENT_SIZE), which only mattered forcreation-with-upload. Withcreation(emptyPOST, data viaPATCH), Relay rejects an oversizedUpload-Lengthwith413before any data is sent (getsentry/relay#5685). Relay now allows 10 GiB (getsentry/relay#6515).Also removes the stale
projects:relay-upload-endpointnote (getsentry/relay#6171).