cdb3_prod_bug_AttributeError: 'list' object has no attribute 'get
1 time
Jan 13, 2022 10:09:44.000
Jan 13, 2022 10:09:44.000 haproxy[51998]: 10.200.200.20:30227 [13/Jan/2022:10:09:44.508] HaProxy80 KUBER/master-node-1-prod 0/0/0/6/6 500 522 13243 - - ---- 403/191/185/24/0 0/0 procedure.prozorro.sale "GuzzleHttp/6.5.5 curl/7.68.0 PHP/7.4.16" "POST /api/procedures HTTP/1.1" "7694f12d53aa1810dd2374b1afc3eea7" 500
Traceback (most recent call last):
File "/procedure/prozorro_sale/procedure/errors.py", line 87, in request_errors_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 118, in context_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 125, in access_middleware
return await check_access(handler)(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 138, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/utils.py", line 107, in accept_language_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 81, in retry_on_concurrency_error_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 65, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 43, in request_unpack_params
return await handler(request, **request.match_info)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.py", line 47, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 65, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/api.py", line 53, in create_procedure
procedure = model_generator.create_procedure(data, _id=blank._id, owner=user.name)
File "/procedure/prozorro_sale/procedure/model_generator.py", line 84, in create_procedure
if auction_start_date := data.get('auctionPeriod', {}).get('startDate'):
AttributeError: 'list' object has no attribute 'get'```
Edited by Ghost User