New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No POST data" in error report #7953
Comments
|
Any progress on this issue? I have the same problem. |
|
I can also confirm this issue, and it makes it a little bit hard to trace back errors Here is a discussion related to this problem |
|
At this point I am convinced DRF is a dead project |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
I still think this is an important feature, please don't close this issue. |
|
I agree. |


Checklist
Description
I'm using Django 3.1.7 & DRF 3.12.2.
When an exception occurs in a
ViewSet, Django automatically sends an email to the administrator.The problem is that the POST data is always empty in this email:
Instead, I expect to see the JSON payload that was sent in the request body.
I added a breakpoint in
django.utils.log.AdminEmailHandler.emit(), and I can confirm thatrequest.POSTis empty.But on the other hand, I'm sure that
request.datawas not empty in theViewSet.I verified that the request's
Content-TypeandX-Requested-Withare correctly set.The only non-standard middlewares I use are corsheaders and admin_reorder; I don't think they are related to this problem.
The text was updated successfully, but these errors were encountered: