[2019-11-14T12:55:17 +0000] | errors | ERROR - Unknown error caught in API - unhashable type: 'dict'
Traceback (most recent call last):
File "/procedure/prozorro_sale/procedure/models/types.py", line 128, in _convert
val = context.field_converter(self.field, item, context)
File "/usr/local/lib/python3.8/site-packages/schematics/transforms.py", line 390, in __call__
return self.func(*args)
File "/usr/local/lib/python3.8/site-packages/schematics/transforms.py", line 426, in validation_converter
return field.validate(value, context)
File "/usr/local/lib/python3.8/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.8/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/usr/local/lib/python3.8/site-packages/schematics/types/compound.py", line 160, in _convert
return model_class(value, context=context)
File "/usr/local/lib/python3.8/site-packages/schematics/models.py", line 115, in __init__
raise DataError(errors)
schematics.exceptions.DataError: {"owner": "This field is required"}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/procedure/prozorro_sale/procedure/errors.py", line 77, in request_errors_middleware
return await handler(request)
File "/procedure/prozorro_sale/procedure/auth.py", line 35, in token_middleware
return await handler(request)
File "/procedure/prozorro_sale/procedure/auth.py", line 41, in accept_language_middleware
return await handler(request)
File "/procedure/prozorro_sale/procedure/auth.py", line 51, in request_type_middleware
return await handler(request)
File "/procedure/prozorro_sale/procedure/auth.py", line 57, in request_context_middleware
return await handler(request)
File "/procedure/prozorro_sale/procedure/errors.py", line 112, in retry_on_concurrency_error_middleware
return await handler(request)
File "/procedure/prozorro_sale/procedure/errors.py", line 96, in handler
return await func(request, *args, **kwargs)
File "/procedure/prozorro_sale/procedure/api.py", line 91, in create_procedure
procedure = model_generator.create_procedure(data, role='public')
File "/procedure/prozorro_sale/procedure/model_generator.py", line 67, in create_procedure
proc = procType(data, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/schematics/models.py", line 107, in __init__
setattr(self, field, f_obj.validate(f_value, context))
File "/usr/local/lib/python3.8/site-packages/schematics/types/base.py", line 317, in validate
value = self.convert(value, context)
File "/usr/local/lib/python3.8/site-packages/schematics/types/compound.py", line 51, in convert
return self._convert(value, context)
File "/procedure/prozorro_sale/procedure/models/types.py", line 131, in _convert
errors[item] = exc
TypeError: unhashable type: 'dict'
[2019-11-14T12:55:17 +0000] | aiohttp.access | INFO - "192.168.31.113 POST /api/procedures HTTP/1.1 500 231 https://procedure-staging.prozorro.sale/api/doc Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36 0.003020"