Skip to content

Conversation

@orhanhenrik
Copy link
Contributor

We are seeing internal errors in the Sentry SDK if self.request.data fails. Specifically, it recently failed with rest_framework.exceptions.UnsupportedMediaType: Unsupported media type "" in request..

This exception should not prevent sentry from reporting the original error.

Similar to a previous fix I made #4001

@orhanhenrik orhanhenrik requested a review from a team as a code owner March 24, 2025 06:28
@codecov
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.56%. Comparing base (f8ec572) to head (c520622).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4189      +/-   ##
==========================================
- Coverage   79.59%   79.56%   -0.04%     
==========================================
  Files         141      141              
  Lines       15736    15736              
  Branches     2675     2675              
==========================================
- Hits        12525    12520       -5     
- Misses       2367     2369       +2     
- Partials      844      847       +3     
Files with missing lines Coverage Δ
sentry_sdk/integrations/django/__init__.py 81.48% <100.00%> (ø)

... and 2 files with indirect coverage changes

@sentrivana sentrivana enabled auto-merge (squash) March 24, 2025 08:50
@sentrivana sentrivana merged commit 4fbcbf0 into getsentry:master Mar 24, 2025
140 checks passed
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.

2 participants