{"action":"created","issue":{"url":"https://api.github.com/repos/andrewgodwin/channels/issues/32","labels_url":"https://api.github.com/repos/andrewgodwin/channels/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/andrewgodwin/channels/issues/32/comments","events_url":"https://api.github.com/repos/andrewgodwin/channels/issues/32/events","html_url":"https://github.com/andrewgodwin/channels/issues/32","id":115872070,"number":32,"title":"HttpRequest._stream","user":{"login":"ekmartin","id":3536982,"avatar_url":"https://avatars.githubusercontent.com/u/3536982?v=3","gravatar_id":"","url":"https://api.github.com/users/ekmartin","html_url":"https://github.com/ekmartin","followers_url":"https://api.github.com/users/ekmartin/followers","following_url":"https://api.github.com/users/ekmartin/following{/other_user}","gists_url":"https://api.github.com/users/ekmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/ekmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekmartin/subscriptions","organizations_url":"https://api.github.com/users/ekmartin/orgs","repos_url":"https://api.github.com/users/ekmartin/repos","events_url":"https://api.github.com/users/ekmartin/events{/privacy}","received_events_url":"https://api.github.com/users/ekmartin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-09T13:01:18Z","updated_at":"2015-12-14T16:46:26Z","closed_at":null,"body":"Django REST Framework (version 3.3.1) tries to access the `_stream` attribute on HttpRequests, which crashes with the following stack trace:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/request.py\", line 357, in __getattribute__\r\n    return getattr(self._request, attr)\r\nAttributeError: 'HttpRequest' object has no attribute 'data'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"path/venv/lib/python3.5/site-packages/django/core/handlers/base.py\", line 132, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"path/venv/lib/python3.5/site-packages/django/views/decorators/csrf.py\", line 58, in wrapped_view\r\n    return view_func(*args, **kwargs)\r\n  File \"path/venv/lib/python3.5/site-packages/django/views/generic/base.py\", line 71, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/views.py\", line 466, in dispatch\r\n    response = self.handle_exception(exc)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/views.py\", line 463, in dispatch\r\n    response = handler(request, *args, **kwargs)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/generics.py\", line 262, in patch\r\n    return self.partial_update(request, *args, **kwargs)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/mixins.py\", line 78, in partial_update\r\n    return self.update(request, *args, **kwargs)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/mixins.py\", line 68, in update\r\n    serializer = self.get_serializer(instance, data=request.data, partial=partial)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/request.py\", line 359, in __getattribute__\r\n    six.reraise(info[0], info[1], info[2].tb_next)\r\n  File \"path/venv/lib/python3.5/site-packages/django/utils/six.py\", line 658, in reraise\r\n    raise value.with_traceback(tb)\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/request.py\", line 183, in data\r\n    self._load_data_and_files()\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/request.py\", line 243, in _load_data_and_files\r\n    self._data, self._files = self._parse()\r\n  File \"path/venv/lib/python3.5/site-packages/rest_framework/request.py\", line 289, in _parse\r\n    parsed = parser.parse(stream, media_type, self.parser_context)\r\n  File \"path/venv/lib/python3.5/site-packages/djangorestframework_camel_case/parser.py\", line 15, in parse\r\n    data = stream.read().decode(encoding)\r\n  File \"path/venv/lib/python3.5/site-packages/django/http/request.py\", line 293, in read\r\n    return self._stream.read(*args, **kwargs)\r\nAttributeError: 'HttpRequest' object has no attribute '_stream'\r\n```"},"comment":{"url":"https://api.github.com/repos/andrewgodwin/channels/issues/comments/164490769","html_url":"https://github.com/andrewgodwin/channels/issues/32#issuecomment-164490769","issue_url":"https://api.github.com/repos/andrewgodwin/channels/issues/32","id":164490769,"user":{"login":"nikolatech","id":8530928,"avatar_url":"https://avatars.githubusercontent.com/u/8530928?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolatech","html_url":"https://github.com/nikolatech","followers_url":"https://api.github.com/users/nikolatech/followers","following_url":"https://api.github.com/users/nikolatech/following{/other_user}","gists_url":"https://api.github.com/users/nikolatech/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolatech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolatech/subscriptions","organizations_url":"https://api.github.com/users/nikolatech/orgs","repos_url":"https://api.github.com/users/nikolatech/repos","events_url":"https://api.github.com/users/nikolatech/events{/privacy}","received_events_url":"https://api.github.com/users/nikolatech/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T16:46:26Z","updated_at":"2015-12-14T16:46:26Z","body":"Even im running into this issue when the websocket is used"}}