Closed Bug 1072378 Opened 10 years ago Closed 10 years ago

Search suggestions result in a 500 and causes Service Unavailable errors

Categories

(addons.mozilla.org Graveyard :: Search, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: krupa.mozbugs, Assigned: davidbgk)

References

()

Details

steps to reproduce:
1. Load https://addons-dev.allizom.org/en-US/firefox/search/?q=adblock&appver=32.0&platform=mac
OR
 Search for "adblock" on addons.allizom.org

observed behavior:
search suggestions result in a 500 and end up with a Service Unavailable error.




GET https://addons-dev.allizom.org/en-US/firefox/search/suggestions [HTTP/1.1 500 Internal Server Error 30983ms
Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "mobility/decorators.py", line 23, in wrapper
    return f(request, *args, **kw)
  File "django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "search/views.py", line 464, in search
    pager = amo.utils.paginate(request, qs)
  File "amo/utils.py", line 140, in paginate
    paginated = p.page(page)
  File "amo/utils.py", line 709, in page
    list(page.object_list)
  File "amo/search.py", line 273, in __iter__
    return iter(self._do_search())
  File "amo/search.py", line 249, in _do_search
    hits = self.raw()
  File "amo/search.py", line 264, in raw
    hits = es.search(qs, self.index, self.type._meta.db_table)
  File "pyes/es.py", line 841, in search
    return self._query_call("_search", body, indexes, doc_types, **query_params)
  File "pyes/es.py", line 251, in _query_call
    response = self._send_request('GET', path, body, querystring_args)
  File "pyes/es.py", line 208, in _send_request
    response = self.connection.execute(request)
  File "pyes/connection.py", line 174, in _client_call
    raise NoServerAvailable

sentry: http://sentry.dmz.phx1.mozilla.com/addons/addons-dev/group/20960/
I think that one is fine now that we pushed/reindexed. Let me know if that's not the case.
Assignee: nobody → david
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.