CDB3-5271 Відсутність bidder_id не повинна призводити до 500 помилки
@vitalii.cherednichenko допоможи @bogdan.slusarenko сформувати запит який призводить до помилки
test_scenarios/announcement/JAS/conftest.py:135: in _active_auction
post_auction_bid(data['auctionUrl'], bid1_post_response.id, auction_bid_1, bid1_post_response.acc_token)
[2023-07-26T15:50:10.517Z] | prozorro_sale.auction.errors | ERROR - Unknown error caught in API - 'AclContext' object has no attribute 'bidder_id' | AUCTION-ID: SPD001-UA-20230726-63955 | X-Request-ID: 2FC47F00000188707F000001005064C140B22004566DC
Traceback (most recent call last):
File "/auction/prozorro_sale/auction/errors.py", line 188, in request_localized_errors_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 123, in context_middleware
return await handler(request)
File "/auction/prozorro_sale/auction/utils.py", line 442, in auth_token_middleware
return await handler(request)
File "/auction/prozorro_sale/auction/utils.py", line 466, in tz_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 91, in retry_on_concurrency_error_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 73, in handler
return await func(request, *args, **kwargs)
File "/auction/prozorro_sale/auction/utils.py", line 104, in handler
return await func(request, *args, **kwargs)
File "/auction/prozorro_sale/auction/utils.py", line 769, in wrapper
response = await func(request, *args, **kwargs)
File "/auction/prozorro_sale/auction/utils.py", line 487, in wrapper
return await func(request, *args, **kwargs)
File "/auction/prozorro_sale/auction/api/api.py", line 172, in post_bid_auction
msg = auction.place_bid(request._context.bidder_id, data['bid'], request._context, validators)
AttributeError: 'AclContext' object has no attribute 'bidder_id'
Edited by Yuriy Bilinsky