While Dsserialize the JSON format after the MLSkill execution it Shows the error

{
“message”: “JSON String>>>>>>>{\r\n "code": "InternalServerError",\r\n "message": "image file is truncated (146 bytes not processed)",\r\n "stacktrace": " File \"/microservice/main.py\", line 59, in predict\n images.save(image_path)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/PIL/Image.py\", line 2284, in save\n self._ensure_mutable()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/PIL/Image.py\", line 599, in _ensure_mutable\n self._copy()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/PIL/Image.py\", line 592, in _copy\n self.load()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/PIL/ImageFile.py\", line 251, in load\n raise OSError(\nOSError: image file is truncated (146 bytes not processed)",\r\n "trace_id": null,\r\n "reason": null\r\n}”,
“level”: “Information”,
“logType”: “User”,
“timeStamp”: “15:39:57”,
“fileName”: “Main”,
“processVersion”: “1.0.0”,
“jobId”: “0c4efbdb-44cb-4db7-80fd-95153b212957”,
“robotName”: “mozammil.rizwan@gmail.com-attended”,
“machineId”: 2294595,
“organizationUnitId”: 3447153
}

@Mozammil

The ml skill returned an error…and it does not contain predict class key in it…that is the reason your assign is failing

Better first check for error and if no error then extract

Cheers