CDB3-8027 Необроблена валідаційна помилка веде до 500ки
додати обробку на валідаційну помилку до всіх get ендпоінтів
приклад 500ки
https://procedure.prozorro.sale/api/search/procedures/byAuctionOrganizer/14360570?date_modified=2024-07-21T11:37:27.070032584Z
сервіс видає помилку, яка не обробляється
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.py", line 67, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.py", line 128, in _catch_error_middleware
return await handler(request, *args, **kwargs)
File "/search/prozorro_sale/search/es/utils.py", line 70, in handler
return await func(request, *args, **kwargs)
File "/search/prozorro_sale/search/core/handlers/procedure.py", line 58, in search_by_auction_organizer
procedures = await request.app.es.procedure.search_by_auction_organizer_id(organizer_id, request.es_limit,
File "/search/prozorro_sale/search/es/search_objects/procedure.py", line 95, in search_by_auction_organizer_id
search_after = [ToDateTime().check(date_modified).isoformat()] if date_modified else None
File "/usr/local/lib/python3.9/site-packages/trafaret/base.py", line 115, in check
return self.check_and_return(value)
File "/search/prozorro_sale/search/es/params_request_validator.py", line 85, in check_and_return
return self._check(value)
File "/search/prozorro_sale/search/es/params_request_validator.py", line 76, in _check
self._failure(
File "/usr/local/lib/python3.9/site-packages/trafaret/base.py", line 140, in _failure
raise DataError(error=error, value=value, trafaret=self, code=code)
trafaret.dataerror.DataError: value does not match format ['%Y-%m-%dT%H:%M:%S.%f%z', '%Y-%m-%dT%H:%M:%S.%fZ', '%Y-%m-%dT%H:%M:%S.%f', '%Y-%m-%dT%H:%M:%S%z', '%Y-%m-%dT%H:%M:%SZ', '%Y-%m-%dT%H:%M:%S', '%Y-%m-%dT%H:%M', '%Y-%m-%d', '%Y-%m', '%Y', '%Y-%m-%d %H:%M:%S.%f%z', '%Y-%m-%d %H:%M:%S.%fZ', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M:%S%z', '%Y-%m-%d %H:%M:%SZ', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M']