Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.7.0
Steps to Reproduce
I sent a json body containing numbers from 0 to 5872 as strings in an array. (["0","1","2",...,"5871","5872"]
).
The whole json-stringified array is exactly 40002
chars long.
I am using max_request_body_size = "always"
which should always include the whole body as it is.
Expected Result
I expected the entire payload to be displayed by sentry because of max_request_body_size = "always"
.
Or, if it wasn't possible, I would at least expect Sentry to tell me the body is truncated so I can take it into account when debugging.
Actual Result
When I send it as a POST request to my test endpoint that raises an Exception, the exception is properly picked up by Sentry BUT the body
field is truncated to 1329
items (see image below).
The displayed body
properly contains all numbers from 0
to 1328
and the array looks valid as if this had been my entire payload which makes debugging very difficult in real situations.
As you can see on the image, the content-length
is set to the expected 40002
which is the size of the whole JSON I generated.
Research on my end
I stumbled upon #1041 and #377 which look similar to my problem but they were both closed as implemented even though I have the issue right now.
If I remove max_request_body_size = "always"
or set it to any other value, the Body then becomes ""
which proves the option is properly taken into account.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status