Stage Jobber Api Error
[2023-07-13T04:09:27.871Z] | aiohttp.access | INFO - "193.34.169.237 POST /api/jobber/announcements/jas HTTP/1.1 500 263 - Python/3.9 aiohttp/3.6.2 0.095000 " | X-Request-ID: b84b40f3-af24-439d-a604-271378b9b57f
[2023-07-13T04:09:27.865Z] | prozorro_sale.jobber.errors | ERROR - Unknown error caught in API - date value out of range | X-Request-ID: b84b40f3-af24-439d-a604-271378b9b57f
Traceback (most recent call last):
File "/jobber/prozorro_sale/jobber/errors.py", line 127, in request_errors_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 269, in context_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 286, in access_middleware
return await check_access(handler)(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 312, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 90, in retry_on_concurrency_error_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 72, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/middlewares.py", line 49, in request_unpack_params
return await handler(request, *args, **request.match_info, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/errors.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 72, in handler
return await func(request, *args, **kwargs)
File "/jobber/prozorro_sale/jobber/api/handlers/announcement.py", line 22, in create
return await _common.create_object(ANONS_TYPE_MAPPING[anons_type], request)
File "/jobber/prozorro_sale/jobber/api/handlers/_common.py", line 29, in create_object
obj = await model_generator.create_object(data, object_type, owner=user.name)
File "/jobber/prozorro_sale/jobber/model_generator.py", line 112, in create_object
await obj.validate_object(initial=True)
File "/jobber/prozorro_sale/jobber/packages/announcement/models.py", line 292, in validate_object
await self.validate_pipeline()
File "/jobber/prozorro_sale/jobber/packages/announcement/models.py", line 264, in validate_pipeline
await self.pipeline_machine.validate()
File "/jobber/prozorro_sale/jobber/pipeline_machine/machine.py", line 55, in validate
await scenario.validate()
File "/jobber/prozorro_sale/jobber/packages/announcement/scenarios.py", line 210, in validate
procedure_data = await self._collect_initial_procedure_data()
File "/jobber/prozorro_sale/jobber/packages/announcement/scenarios.py", line 383, in _collect_initial_procedure_data
init_data = self.build_procedure_data(extras, mapping=super().base_mapping)
File "/jobber/prozorro_sale/jobber/packages/announcement/scenarios.py", line 72, in build_procedure_data
self.resolve_mappings(out_data, mapping, extras)
File "/jobber/prozorro_sale/jobber/packages/announcement/scenarios.py", line 56, in resolve_mappings
source_value = self.resolve_source_value(calc_data["source"], extras)
File "/jobber/prozorro_sale/jobber/packages/announcement/scenarios.py", line 37, in resolve_source_value
return source["value"](source_data)
File "/jobber/prozorro_sale/jobber/packages/announcement/utils.py", line 151, in next_auction_start_date
start_date = calculate_end_date_from_duration({
File "/jobber/prozorro_sale/jobber/state_machine/calculator.py", line 186, in calculate_end_date_from_duration
end_date = calc_operation(end_date, timedelta(days=delta.days))
OverflowError: date value out of range