laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

RequestError: RequestError(400, 'search_phase_execution_exception', '[inner_hits] already contains an entry for... #1861

Closed sentry-io[bot] closed 3 days ago

sentry-io[bot] commented 4 weeks ago

Sentry Issue: LII-1MD

RequestError: RequestError(400, 'search_phase_execution_exception', '[inner_hits] already contains an entry for key [pages]')
(27 additional frame(s) were not displayed)
...
  File "peachjam_search/views.py", line 583, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "peachjam_search/views.py", line 518, in list
    resp = super().list(request, *args, **kwargs)
  File "peachjam_search/views.py", line 52, in num_pages
    return min(super().num_pages, (self.max_results - 1) // self.per_page)