I have a service that uses Aspose Cloud REST API to convert PPTX files to series of SVG pictures.
The workflow is:
PUT https://api.aspose.cloud/v3.0/slides/storage/file/<file name>
POST https://api.aspose.cloud/v3.0/slides/async/<file name>/Svg
- Poll for status using
GET https://api.aspose.cloud/v3.0/slides/async/<operation ID>
until status changes to one of the final ones (Finished, Failed or Canceled). - If the operation is finished, download the results:
GET https://api.aspose.cloud/v3.0/slides/async/<operation ID>/result
That worked fine for some time, but recently 30-50% of conversions started to fail at the last step. The API returns status “Finished” at the step 3 but then an attempt to download results fails with 400 status and the following body:
{
"requestId": "689bb73d-b39c-4efe-9d36-a71beb3e9da2",
"error": {
"code": "UnexpectedObjectType",
"message": "Operation is not finished",
"description": "The object type is different from the expected",
"dateTime": "2024-10-11T16:32:49.5567638Z"
}
}
This looks like an API bug to me because the result usually becomes available in awhile after the failure.
Has anyone else encounter this?