Make sure everything works with Django-Rest-Framework
See original GitHub issueWe should django-rest-framework’s request.data
instead of trying to extract a structured body ourselves
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Django REST framework: Home
Django REST framework is a powerful and flexible toolkit for building Web APIs. ... Don't forget to make sure you've also added rest_framework...
Read more >10 things you need to know to effectively use Django Rest ...
In this article I want to share some ideas and tricks that I got to know while working with Django Rest Framework in...
Read more >Django Rest Framework – An Introduction - Real Python
Make sure both GET and POST requests are working correctly. Delete. Before changing or adding anything, test it out. Try the delete link....
Read more >Build a Django REST API with the Django Rest Framework ...
Build a Django Rest API with the Django Rest Framework. Complete Tutorial. There's a lot to cover so be sure to checkout the...
Read more >Django REST Framework Course – Build Web APIs with Python
Django REST Framework is a powerful and flexible toolkit for building Web APIs. In this course for beginner you will learn how to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s somewhat difficult to understand why using sentry with django_rest_framework does not upload request bodies out of the box. There were a few scattered SO and github threads about the problem but the few that I found refer to the older sentry client. I managed to track down the problem and wanted to share my results.
Here are relevant parts of the code that I found:
https://github.com/encode/django-rest-framework/blob/3.9.0/rest_framework/parsers.py#L68
https://github.com/django/django/blob/2.1.5/django/http/request.py#L283
One workaround is to do something silly like this:
I put up a repo demonstrating this.
https://github.com/cwmoo740/django_sentry_debugging
It would be significantly better imo if there was a separate integration for DjangoRestFramework that simply read from request.data directly and let DRF do the parsing, as you suggested when you opened this thread.
If that work will be accepted I can tackle it and put up a pr.
0.7.10 was released which should fix this