We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d2157e commit b7787d9Copy full SHA for b7787d9
1 file changed
sentry_sdk/integrations/starlette.py
@@ -498,9 +498,8 @@ def _get_cached_request_body_attribute(
498
if content_length and not request_body_within_bounds(client, content_length):
499
return OVER_SIZE_LIMIT_SUBSTITUTE
500
501
- json_body = getattr(request, "_json", None)
502
- if json_body is not None:
503
- return json.dumps(json_body)
+ if hasattr(request, "_json"):
+ return json.dumps(request._json)
504
505
formdata_body = getattr(request, "_form", None)
506
if formdata_body is None:
0 commit comments