500 Помилка при спробі отримати процедуру
При спробі отримати об'єкт процедури GFW виникає помилка
Приклад: https://procedure-sandbox.prozorro.sale/api/procedures/6710b5212fd0e7823a436603
[2024-11-13T09:30:13.900Z] | prozorro_sale.procedure.db | ERROR - Failed to deserialize procedure | PROCEDURE-ID: 6710b5212fd0e7823a436603 | X-Request-ID: ff561648d0e26e440bc8f006ad9f0cf9
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 136, in trusted_load
obj.__data[key] = obj.fields[key](val, context)
File "/usr/local/lib/python3.9/site-packages/schematics/types/base.py", line 226, in __call__
return 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 "/procedure/prozorro_sale/procedure/models/types.py", line 118, in _convert
raise exceptions.CompoundError(errors)
schematics.exceptions.CompoundError: {"3630ae5f16f7425f8b5f17d9393b39eb": ["Failed to load 'items' field, cause of 'items'"]}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/procedure/prozorro_sale/procedure/db.py", line 176, in _create_procedure_obj
obj = model_generator.load_procedure(data)
File "/procedure/prozorro_sale/procedure/model_generator.py", line 56, in load_procedure
return get_procedure_type_from_data(data).trusted_load(data)
File "/usr/local/lib/python3.9/site-packages/schematics/models.py", line 138, in trusted_load
raise ConversionError(f"Failed to load '{key}' field, cause of {e}")
schematics.exceptions.ConversionError: ["Failed to load 'awards' field, cause of {\"3630ae5f16f7425f8b5f17d9393b39eb\": [\"Failed to load 'items' field, cause of 'items'\"]}"]
Edited by Viacheslav Sukhovieiev