Open Bug 1957556 Opened 18 days ago Updated 9 days ago

Internal server error when sorting the `last_error_value` column

Categories

(Socorro :: Webapp, defect, P3)

Tracking

(Not tracked)

People

(Reporter: gsvelto, Unassigned)

Details

Attachments

(1 file)

STR:

  1. I ran this query
  2. Switched to the "Reports" tab
  3. Added last_error_value to the list of fields and clicked "Update"
  4. Tried to sort the last_error_value column by clicking on the column header

At this point I hit the internal server error, see the screenshot.

Thanks for the report! I can't reproduce the error. Sorting by a column happens on the client side and doesn't cause any requests to the server when I try it, so I don't know what's causing the internal server error.

Shortly before you filed this bug, we received this traceback in Sentry which is potentially related:

KeyError: 'caused_by'
  File "elasticsearch_dsl/utils.py", line 205, in __getattr__
    return self.__getitem__(attr_name)
  File "elasticsearch_dsl/utils.py", line 220, in __getitem__
    return _wrap(self._d_[key])

AttributeError: 'AttrDict' object has no attribute 'caused_by'
  File "django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "crashstats/crashstats/decorators.py", line 149, in inner
    response = view(request, *args, **kwargs)
  File "crashstats/signature/views.py", line 69, in inner
    return view(request, *args, **kwargs)
  File "crashstats/signature/views.py", line 211, in signature_reports
    search_results = api.get(**params)
  File "crashstats/supersearch/models.py", line 239, in get
    return super(SuperSearch, self).get(**kwargs)
  File "crashstats/crashstats/models.py", line 377, in get
    return self._get(expect_json=expect_json, **kwargs)
  File "crashstats/crashstats/models.py", line 430, in _get
    return self.fetch(
  File "crashstats/crashstats/models.py", line 318, in fetch
    result = implementation_method(**params)
  File "socorro/external/es/supersearch.py", line 500, in get
    and failure.reason.caused_by.type == "illegal_argument_exception"
  File "elasticsearch_dsl/utils.py", line 207, in __getattr__
    raise AttributeError(
Priority: -- → P3

It could be that this happens only if there are mutliple pages of crashes involved, I couldn't reproduce with one week work of crashes, but I do with 6 months. Try the STR in comment 0 but search for the past 6 months worth of crashes before attempting to sort the column.

Thanks for the update – I can reproduce the error now, and I'll look into it.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: