You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If search results are requested in JSON format, the current code tries to calculate query_result['hits'] and return the JSON results without checking if there is an error in the query_result:
If search results are requested in JSON format, the current code tries to calculate
query_result['hits']
and return the JSON results without checking if there is anerror
in thequery_result
:hepdata/hepdata/modules/search/views.py
Lines 249 to 250 in 3dcdfe6
An invalid query like
q=%27%5B0%5D
gives an exceptionKeyError: 'total'
, e.g. Sentry event. A JSON error message should be returned instead.The text was updated successfully, but these errors were encountered: