cdb3_prod_registry_bug_unconverted data remains
5 times 500 error Feb 8, 2022 09:50:26.000 env cdb3 prod prozorro registry
Feb 8, 2022 @ 09:50:26.000 haproxy[55739]: 10.200.200.17:34183 [08/Feb/2022:09:50:26.823] HaProxy80 KUBER/worker-node-1-prod 0/0/1/7/8 500 522 10435 - 295/154/133/22/0 0/0 procedure.prozorro.sale "Mozila/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MyIE2;" "POST /api/registry/objects/realEstate HTTP/1.1" "f0c0a2a4275ea39802c24669e2761ea2" procedure.prozorro.sale 500```
traceback
```2022-02-08T07:50:26.828Z] | prozorro_sale.registry.errors | ERROR - Unknown error caught in API - unconverted data remains: | X-Request-ID: f0c0a2a4275ea39802c24669e2761ea2
Traceback (most recent call last):
File "/registry/prozorro_sale/registry/errors.py", line 65, in request_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 "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 130, in access_middleware
return await check_access(handler)(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/auth/__init__.py", line 143, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 70, in retry_on_concurrency_error_middleware
return await handler(request)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 54, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/middlewares.py", line 35, 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 48, in handler
return await func(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prozorro_sale/tools/__init__.py", line 54, in handler
return await func(request, *args, **kwargs)
File "/registry/prozorro_sale/registry/api/api.py", line 50, in create_registry_object_with_type
obj = model_generator.create_registry_object(data, obj_type=obj_type, owner=request._context.user.name)
File "/registry/prozorro_sale/registry/model_generator.py", line 21, in create_registry_object
obj = REGISTRY_MODEL(data, **kwargs)
File "/registry/prozorro_sale/registry/models/base.py", line 69, in __init__
super().__init__(data, **kwargs)
File "/registry/prozorro_sale/registry/models/base.py", line 21, in __init__
super().__init__(data, **kwargs)
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 114, in __init__
setattr(self, field, f_obj.validate(f_value, context))
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 160, in _convert
return model_class(value, context=context)
File "/registry/prozorro_sale/registry/models/base.py", line 21, in __init__
super().__init__(data, **kwargs)
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 114, in __init__
setattr(self, field, f_obj.validate(f_value, context))
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 160, in _convert
return model_class(value, context=context)
File "/registry/prozorro_sale/registry/models/base.py", line 21, in __init__
super().__init__(data, **kwargs)
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 114, in __init__
setattr(self, field, f_obj.validate(f_value, context))
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 227, in _convert
data.append(context.field_converter(self.field, item, context))
File "/usr/local/lib/python3.9/site-packages/schematics/transforms.py", line 388, in __call__
return self.func(*args)
File "/usr/local/lib/python3.9/site-packages/schematics/transforms.py", line 424, in validation_converter
return field.validate(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 160, in _convert
return model_class(value, context=context)
File "/registry/prozorro_sale/registry/models/base.py", line 21, in __init__
super().__init__(data, **kwargs)
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 114, in __init__
setattr(self, field, f_obj.validate(f_value, context))
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 227, in _convert
data.append(context.field_converter(self.field, item, context))
File "/usr/local/lib/python3.9/site-packages/schematics/transforms.py", line 388, in __call__
return self.func(*args)
File "/usr/local/lib/python3.9/site-packages/schematics/transforms.py", line 424, in validation_converter
return field.validate(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/compound.py", line 160, in _convert
return model_class(value, context=context)
File "/registry/prozorro_sale/registry/models/base.py", line 22, in __init__
self._validate_data(data, **kwargs)
File "/registry/prozorro_sale/registry/models/base.py", line 673, in _validate_data
end_time = utils.parse_24_time(self.get('endTime'))
File "/registry/prozorro_sale/registry/utils.py", line 103, in parse_24_time
return datetime.strptime(value, '%H:%M')
File "/usr/local/lib/python3.9/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/local/lib/python3.9/_strptime.py", line 352, in _strptime
raise ValueError("unconverted data remains: %s" %
ValueError: unconverted data remains: ```
Edited by Ghost User