'not supported between instances of 'str' and 'float'' at Stage env
| May 28, 2021 @ 14:05:38.000 | haproxy[99424]: 144.76.219.204:48831 [28/May/2021:14:05:38.514] HaProxy80 KUBER/master-node-2-np 0/0/0/7/7 500 526 582 - - ---- 96/45/44/6/0 0/0 procedure-staging.prozorro.sale "GuzzleHttp/6.2.1 curl/7.38.0 PHP/5.6.40-0+deb8u11" "PATCH /api/procedures/60b0cd1b1e7247b6c4a11173/bids/94b370a198e14e2e82aee9f48d4090d3?acc_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" "8cb62c9b-1be5-495c-b570-bfcbadea1497" | 500 | procedure-staging.prozorro.sale
[2021-05-28T11:05:38.519Z] | prozorro_sale.procedure.errors | ERROR - Unknown error caught in API - '>' not supported between instances of 'str' and 'float' | X-Request-ID: 8cb62c9b-1be5-495c-b570-bfcbadea1497
Traceback (most recent call last):
File "/procedure/prozorro_sale/procedure/errors.py", line 76, in request_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/auth/__init__.py", line 114, in access_middleware
return await check_access(handler)(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 123, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/utils.py", line 93, 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 67, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 45, in request_unpack_params
return await handler(request, **request.match_info)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 106, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/utils.py", line 62, in handler
res = await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/api.py", line 175, in update_bid
procedure.update_bid(bid_id, data, request._context)
File "/procedure/prozorro_sale/procedure/roles.py", line 41, in handler
return func(*args, **kwargs)
File "/procedure/prozorro_sale/procedure/state_machine/states.py", line 170, in update_bid
self.procedure._validate_bid_quantity(quantity)
File "/procedure/prozorro_sale/procedure/packages/renewables/procedure.py", line 80, in _validate_bid_quantity
if quantity > self.items[0].quantity:
TypeError: '>' not supported between instances of 'str' and 'float'
Edited by Olga Kochubynska