django-request-logging: RawPostDataException with 0.6.8
We see this error when doing a post after upgrading from 0.6.7 to 0.6.8:
/request_logging/middleware.py:166: in process_body
@property
def body(self):
if not hasattr(self, '_body'):
if self._read_started:
> raise RawPostDataException("You cannot access body after reading from request's data stream")
E django.http.request.RawPostDataException: You cannot access body after reading from request's data stream
using django 2.2.1
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 15 (4 by maintainers)
Commits related to this issue
- Simple app to reproduct https://github.com/Rhumbix/django-request-logging/issues/67 — committed to therefromhere/django_request_logging_bug by therefromhere 5 years ago
I’ve managed to reproduce the bug - see example project here: https://github.com/therefromhere/django_request_logging_bug
I think the django-request-logging tests need a bit of refactoring so they can accommodate an integration test like this?
Using the example project:
with Django==2.2.1 django-request-logging==0.6.9