"Error handling request" after restart swift storage/ on Prod and Stage env
Error handling request: /api/documents/public/ - on Prod and Stage env
Prod:
| Jun 14, 2021 @ 12:13:43.000 | - | haproxy[8920]: 88.155.51.81:27659 [14/Jun/2021:12:13:42.356] HaProxy80 KUBER/master-node-2-prod 0/0/0/1017/1017 500 491 557 - - ---- 315/154/146/23/0 0/0 procedure.prozorro.sale "Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 S" "GET /api/documents/public/d897b7f3f4654aacac6508117ddb78ec HTTP/1.1" "" | /api/documents/public/d897b7f3f4654aacac6508117ddb78ec | 500
[2021-06-14T09:13:43.374Z] | aiohttp.server | ERROR - Error handling request | X-Request-ID: 4e421bf3bf4cff4aeb6092a4cb805860
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/document_service/prozorro_sale/document_service/utils.py", line 24, in excepts_errors_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 107, in context_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/logging.py", line 66, in request_id_middleware
response = await handler(request)
File "/document_service/prozorro_sale/document_service/api.py", line 64, in get_document
return await request.app.storage.get(doc_id, scope, request)
File "/document_service/prozorro_sale/document_service/storages/swift_storage.py", line 192, in get
raise ERRORS[response.status]
KeyError: 503