Skip to content

Instantly share code, notes, and snippets.

@amir-qayyum-khan
Created October 2, 2015 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amir-qayyum-khan/1d93d227bd4757d894bb to your computer and use it in GitHub Desktop.
Save amir-qayyum-khan/1d93d227bd4757d894bb to your computer and use it in GitHub Desktop.
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/rest_framework/viewsets.py" in view
87. return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch
466. response = self.handle_exception(exc)
File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch
463. response = handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/statsd/client.py" in _wrapped
30. return_value = f(*args, **kwargs)
File "/src/rest/views.py" in list
921. response = self.get_paginated_response(serializer.data)
File "/usr/local/lib/python2.7/dist-packages/rest_framework/serializers.py" in data
658. ret = super(ListSerializer, self).data
File "/usr/local/lib/python2.7/dist-packages/rest_framework/serializers.py" in data
223. self._data = self.to_representation(self.instance)
File "/usr/local/lib/python2.7/dist-packages/rest_framework/serializers.py" in to_representation
598. self.child.to_representation(item) for item in iterable
File "/usr/local/lib/python2.7/dist-packages/rest_framework/serializers.py" in to_representation
447. attribute = field.get_attribute(instance)
File "/usr/local/lib/python2.7/dist-packages/rest_framework/fields.py" in get_attribute
401. raise type(exc)(msg)
Exception Type: AttributeError at /api/v1/repositories/demo/search/
Exception Value: Got AttributeError when attempting to get a value for field `description_path` on serializer `RepositorySearchSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `Result` instance.
Original exception text was: 'Result' object has no attribute 'description_path'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment