invalid character in header
traceback error on prod cdb3 http_status_code 500 Nov 3, 2021 @ 14:28:33.000 domain_name procedure.prozorro.sale http_request /api/documents/public/0229187941034a2493b4f817e494acad
registry-gitlab.prozorro.sale/prozorro-sale/document-service:v3-15-0 | ||
---|---|---|
kubernetes.container.name | prozorro-prod-document-storage-api | |
kubernetes.labels.app_kubernetes_io/environment | prod | |
kubernetes.labels.app_kubernetes_io/instance | prozorro-prod | |
kubernetes.labels.app_kubernetes_io/name | document-storage-api | |
kubernetes.labels.app_kubernetes_io/part-of | document-storage |
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 890, in start
message, payload = await self._protocol.read() # type: ignore
File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 604, in read
await self._waiter
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_proto.py", line 213, in data_received
messages, upgraded, tail = self._parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message='invalid character in header'
The above exception was the direct cause of the following exception:
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 114, in context_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/middlewares.py", line 9, 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 197, in get
response = await session.get(object_url, ssl=False, headers=headers)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 544, in _request
await resp.start(conn)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 892, in start
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='invalid character in header', url=URL('https://swift-storage/v1/AUTH_<storage-id>/prod-storage/public_<obj-id>')```
Edited by dmitry.mashoshin