isamplesorg / isamples_inabox

Provides functionality intermediate to a collection and central
0 stars 1 forks source link

Handle errors when sending solr requests #376

Closed dannymandel closed 2 months ago

dannymandel commented 2 months ago

Fix the bug that @smrgeoinfo found when attempting to use the export service. It's very easy to send a malformed query to solr that results in a 400 error. We now respond appropriately, and the export client CLI also handles these responses appropriately:

WARNING:root:Export job failed with error.  Check that your solr query is valid and try again.  Response: {'status': 'error', 'tcompleted': '2024-04-24 14:19:31.131047', 'reason': 'HTTP Error, code: 400 reason: Bad Request'}
dannymandel commented 2 months ago

Going to merge this one so we can push it out.