Skip to content

feat(transport): handle HTTP 413 responses for oversized envelopes#982

Merged
solnic merged 2 commits intomasterfrom
978-sdk-handling-http-413-elixir
Feb 2, 2026
Merged

feat(transport): handle HTTP 413 responses for oversized envelopes#982
solnic merged 2 commits intomasterfrom
978-sdk-handling-http-413-elixir

Conversation

@solnic
Copy link
Copy Markdown
Collaborator

@solnic solnic commented Feb 2, 2026

This implements the SDK specification for handling HTTP 413 Content Too Large responses from Relay. Previously, oversized envelopes received HTTP 400 Bad Request, but Relay now returns HTTP 413 to allow SDKs to distinguish size-related rejections from other errors.

  • Add :envelope_too_large reason to ClientError with specific error message
  • Handle HTTP 413 in Transport without retrying (similar to 429)
  • Record client report with :send_error reason per SDK spec
  • Log warning about envelope being rejected due to size limits

Closes #978

- Add :envelope_too_large reason to ClientError with specific error message
- Handle HTTP 413 in Transport without retrying (similar to 429)
- Record client report with :send_error reason per SDK spec
- Log warning about envelope being rejected due to size limits

This implements the SDK specification for handling HTTP 413 Content Too Large
responses from Relay. Previously, oversized envelopes received HTTP 400 Bad
Request, but Relay now returns HTTP 413 to allow SDKs to distinguish
size-related rejections from other errors.

Closes #978

Signed-off-by: Peter Solnica <peter@solnica.online>
@solnic solnic linked an issue Feb 2, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 2, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 78b8c5a

@solnic solnic marked this pull request as ready for review February 2, 2026 11:32
Copy link
Copy Markdown
Collaborator

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@solnic solnic merged commit 7a823c9 into master Feb 2, 2026
12 checks passed
@solnic solnic deleted the 978-sdk-handling-http-413-elixir branch February 2, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK Handling HTTP 413 [Elixir]

2 participants