cdb3_prod_bug_HTTPMethodNotAllowed: Method Not Allowed
env prozorro-prod-auth-api cdb3
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.py", line 48, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.py", line 108, in _catch_error_middleware
return await handler(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 123, in context_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py", line 931, in _handle
raise self._http_exception
aiohttp.web_exceptions.HTTPMethodNotAllowed: Method Not Allowed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
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, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.py", line 54, in handler
return await response_constructor(msg, code, request)
File "/auth/prozorro_sale/auth_service/errors.py", line 32, in resolve_error_resp
'text/html' in req.headers.get('Accept'),
TypeError: argument of type 'NoneType' is not iterable```