Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Traceback (most recent call last):
File "/****/****/****/tests/test_views.py", line 130, in test_so_something
resp = client.post(
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 296, in post
response = super().post(
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 210, in post
return self.generic('POST', path, data, content_type, **extra)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 234, in generic
return super().generic(
File "/****/****/****/venv/lib/python3.9/site-packages/django/test/client.py", line 542, in generic
return self.request(**r)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 286, in request
return super().request(**kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 238, in request
request = super().request(**kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/django/test/client.py", line 806, in request
response = self.handler(environ)
File "/****/****/****/venv/lib/python3.9/site-packages/django/test/client.py", line 153, in __call__
response = self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/test.py", line 258, in get_response
return super().get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 140, in get_response
response = self._middleware_chain(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/utils/deprecation.py", line 134, in __call__
response = response or self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/crum/__init__.py", line 97, in __call__
response = self.get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 57, in inner
response = response_for_exception(request, exc)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 139, in response_for_exception
response = handle_uncaught_exception(
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/****/****/****/question/views.py", line 22, in create
response = super().create(request, *args, **kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/mixins.py", line 17, in create
serializer = self.get_serializer(data=request.data)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/request.py", line 216, in data
self._load_data_and_files()
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/request.py", line 279, in _load_data_and_files
self._data, self._files = self._parse()
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/request.py", line 354, in _parse
parsed = parser.parse(stream, media_type, self.parser_context)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/parsers.py", line 65, in parse
return json.load(decoded_stream, parse_constant=parse_constant)
File "/****/****/****/venv/lib/python3.9/site-packages/rest_framework/utils/json.py", line 31, in load
return json.load(*args, **kwargs)
File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/codecs.py", line 496, in read
newdata = self.stream.read()
File "/****/****/****/venv/lib/python3.9/site-packages/django/http/request.py", line 404, in read
return self._stream.read(*args, **kwargs)
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 35, in read
result = self.buffer + self._read_limited()
File "/****/****/****/venv/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 29, in _read_limited
result = self.stream.read(size)
File "/****/****/****/venv/lib/python3.9/site-packages/django/test/client.py", line 82, in read
assert (
AssertionError: Cannot read more than the available bytes from the HTTP incoming data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment