CDB3-2447 cdb3_sandbox_ERROR - ValueError: year 0 is out of range
sandbox | 13:56:28.972 | |--------------| 9/12/2021
prozorro-sandbox 1 time prozorro-sandbox-procedure-api
ERROR - Unknown error caught in API - year 0 is out of range
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 92, in create_procedure
proc.status = initial_state
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 37, in _setter
getattr(self, post_set_callback_name)()
File "/procedure/prozorro_sale/procedure/state_machine/__init__.py", line 38, in _after_status_set
self._load_state(self.status)._on_enter()
File "/procedure/prozorro_sale/procedure/state_machine/base_states.py", line 108, in _on_enter
self._calculate_and_assign_procedure_periods()
File "/procedure/prozorro_sale/procedure/packages/basicSell/states.py", line 41, in _calculate_and_assign_procedure_periods
self._calculate_and_assign_auction_period()
File "/procedure/prozorro_sale/procedure/packages/basicSell/states.py", line 31, in _calculate_and_assign_auction_period
auction_start_date = calculator.calculate_auction_period_start_date(
File "/procedure/prozorro_sale/procedure/calculator.py", line 699, in calculate_auction_period_start_date
_date = set_auction_period_start_date(_date, {'startDate': date_spec}, kiev_tz)
File "/procedure/prozorro_sale/procedure/calculator.py", line 484, in set_auction_period_start_date
return auction_date.astimezone(tz)
ValueError: year 0 is out of range```
Edited by Ghost User