{"comment":{"created_at":"2011-10-26T12:15:18Z","body":"```\r\n<WSGIRequest\r\nGET:<QueryDict: {}>,\r\nPOST:<QueryDict: {}>,\r\nCOOKIES: ...,\r\nMETA: ...>\r\n```\r\n\r\nFunction in view is decorated with login checker and just raises Exception:\r\n\r\n```python\r\ndef login_checker(view_func):\r\n    def wrapper(*args, **kwargs):\r\n        request = filter(lambda x: isinstance(x, WSGIRequest), args)[0]\r\n        user = authorize(request)\r\n        if not user: \r\n            return HttpResponseForbidden()\r\n        kwargs['user'] = user\r\n        return view_func(*args, **kwargs)\r\n    return wrapper\r\n```","updated_at":"2011-10-26T12:15:18Z","url":"https://api.github.com/repos/dcramer/django-sentry/issues/comments/2529588","id":2529588,"user":{"avatar_url":"https://secure.gravatar.com/avatar/be3d795f6ace5ff6805a35f2af4c0bb1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"be3d795f6ace5ff6805a35f2af4c0bb1","url":"https://api.github.com/users/Andrey86","id":1143352,"login":"Andrey86"}},"action":"created","issue":{"number":256,"created_at":"2011-10-21T15:49:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Error occurs when sentry tries to log exception happend after empty POST request. \r\n<pre><code>Unable to process log entry: You cannot access raw_post_data after reading from request's data stream\r\nTraceback (most recent call last):\r\n  File \".../lib/python2.6/site-packages/raven/contrib/django/models.py\", line 97, in actually_do_stuff\r\n    get_client().create_from_exception(**extra)\r\n  File \".../lib/python2.6/site-packages/raven/contrib/django/__init__.py\", line 120, in create_from_exception\r\n    return super(DjangoClient, self).create_from_exception(exc_info, **kwargs)\r\n  File \".../lib/python2.6/site-packages/raven/base.py\", line 304, in create_from_exception\r\n    **kwargs\r\n  File \".../lib/python2.6/site-packages/raven/contrib/django/__init__.py\", line 30, in process\r\n    if not request.POST and request.raw_post_data:\r\n  File \".../lib/python2.6/site-packages/django/http/__init__.py\", line 240, in _get_raw_post_data\r\n    raise Exception(\"You cannot access raw_post_data after reading from request's data stream\")\r\n</code></pre>\r\nI'm using separate sentry server with uwsgi & apache. Worked fine before I upgraded from 1.6 to 1.13.","comments":7,"title":"error when logging empty post","updated_at":"2011-10-26T12:15:18Z","url":"https://api.github.com/repos/dcramer/django-sentry/issues/256","id":2016796,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/be3d795f6ace5ff6805a35f2af4c0bb1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"be3d795f6ace5ff6805a35f2af4c0bb1","url":"https://api.github.com/users/Andrey86","id":1143352,"login":"Andrey86"},"html_url":"https://github.com/dcramer/django-sentry/issues/256","labels":[],"state":"open"},"legacy":{"issue_id":2016796,"comment_id":2529588}}