Skip to content

Instantly share code, notes, and snippets.

@robhudson
Created February 2, 2015 21:49
Show Gist options
  • Save robhudson/694d6c63e39ca6250043 to your computer and use it in GitHub Desktop.
Save robhudson/694d6c63e39ca6250043 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/vagrant/src/kuma/search/tests/test_views.py", line 147, in test_tokenize_camelcase_titles
response = self.client.get('/en-US/search?q=' + q)
File "/home/vagrant/src/vendor/src/django/django/test/client.py", line 439, in get
response = super(Client, self).get(path, data=data, **extra)
File "/home/vagrant/src/vendor/src/django/django/test/client.py", line 244, in get
return self.request(**r)
File "/home/vagrant/src/vendor/src/django/django/test/client.py", line 381, in request
response = self.handler(environ)
File "/home/vagrant/src/vendor/src/django/django/test/client.py", line 84, in __call__
response = self.get_response(request)
File "/home/vagrant/src/vendor/src/django/django/core/handlers/base.py", line 177, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/vagrant/src/vendor/src/django/django/core/handlers/base.py", line 109, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/vagrant/src/vendor/src/django-rest-framework/rest_framework/compat.py", line 127, in view
return self.dispatch(request, *args, **kwargs)
File "/home/vagrant/src/vendor/src/django/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(*args, **kwargs)
File "/home/vagrant/src/vendor/src/django-rest-framework/rest_framework/views.py", line 399, in dispatch
response = self.handle_exception(exc)
File "/home/vagrant/src/vendor/src/django-rest-framework/rest_framework/views.py", line 396, in dispatch
response = handler(request, *args, **kwargs)
File "/home/vagrant/src/vendor/src/django-rest-framework/rest_framework/generics.py", line 402, in get
return self.list(request, *args, **kwargs)
File "/home/vagrant/src/kuma/search/views.py", line 64, in list
return super(SearchView, self).list(request, *args, **kwargs)
File "/home/vagrant/src/vendor/src/django-rest-framework/rest_framework/mixins.py", line 90, in list
page = self.paginate_queryset(self.object_list)
File "/home/vagrant/src/vendor/src/django-rest-framework/rest_framework/generics.py", line 157, in paginate_queryset
page = paginator.page(page_number)
File "/home/vagrant/src/kuma/search/paginator.py", line 44, in page
page = Page(resp.hits, number, self)
File "/home/vagrant/src/vendor/src/elasticsearch-dsl-py/elasticsearch_dsl/result.py", line 36, in hits
super(AttrDict, self).__setattr__('_hits', AttrList(map(self._get_result, h['hits'])))
File "/home/vagrant/src/vendor/src/elasticsearch-dsl-py/elasticsearch_dsl/result.py", line 29, in _get_result
return self._callbacks.get(dt, Result)(hit)
File "/home/vagrant/src/vendor/src/elasticsearch-dsl-py/elasticsearch_dsl/document.py", line 123, in from_es
return cls(id=doc.pop('_id'), **doc)
TypeError: DocTypeMeta object got multiple values for keyword argument 'id'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment