Skip to content

Instantly share code, notes, and snippets.

@DevHugo
Created July 31, 2014 22:22
Show Gist options
  • Save DevHugo/bf1b5ae3b61a698d9aee to your computer and use it in GitHub Desktop.
Save DevHugo/bf1b5ae3b61a698d9aee to your computer and use it in GitHub Desktop.
Internal Server Error: /rechercher/
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/haystack/views.py", line 149, in search_view
return view_class(*args, **kwargs)(request)
File "/usr/lib/python2.7/site-packages/haystack/views.py", line 50, in __call__
return self.create_response()
File "/home/hugo/dev/zds-site/zds/search/views.py", line 10, in create_response
(paginator, page) = self.build_page()
File "/usr/lib/python2.7/site-packages/haystack/views.py", line 107, in build_page
self.results[start_offset:start_offset + self.results_per_page]
File "/usr/lib/python2.7/site-packages/haystack/query.py", line 268, in __getitem__
self._fill_cache(start, bound)
File "/usr/lib/python2.7/site-packages/haystack/query.py", line 166, in _fill_cache
results = self.query.get_results(**kwargs)
File "/usr/lib/python2.7/site-packages/haystack/backends/__init__.py", line 644, in get_results
self.run(**kwargs)
File "/usr/lib/python2.7/site-packages/haystack/backends/solr_backend.py", line 693, in run
results = self.backend.search(final_query, **search_kwargs)
File "/usr/lib/python2.7/site-packages/haystack/backends/__init__.py", line 34, in wrapper
return func(obj, query_string, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/haystack/backends/solr_backend.py", line 125, in search
raw_results = self.conn.search(query_string, **search_kwargs)
File "/usr/lib/python2.7/site-packages/pysolr.py", line 603, in search
response = self._select(params)
File "/usr/lib/python2.7/site-packages/pysolr.py", line 333, in _select
return self._send_request('get', path)
File "/usr/lib/python2.7/site-packages/pysolr.py", line 318, in _send_request
error_message = self._extract_error(resp)
File "/usr/lib/python2.7/site-packages/pysolr.py", line 397, in _extract_error
reason, full_html = self._scrape_response(resp.headers, resp.content)
File "/usr/lib/python2.7/site-packages/pysolr.py", line 465, in _scrape_response
full_html = "%s" % response
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 59: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment