Unable to Download Results of a Finished Asynchronous Conversion

I have a service that uses Aspose Cloud REST API to convert PPTX files to series of SVG pictures.
The workflow is:

  1. PUT https://api.aspose.cloud/v3.0/slides/storage/file/<file name>
  2. POST https://api.aspose.cloud/v3.0/slides/async/<file name>/Svg
  3. 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).
  4. 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?

@lumentric,
Thank you for contacting free support. It will take me some time to investigate the case. I will get back to you soon.

1 Like

@lumentric,
Thank you for your patience. Unfortunately, I was unable to reproduce the errors you described. Please share the following additional files and information:

  • sample presentation file
  • code example to reproduce the error
  • Aspose.Slides SDK version you are using

@andrey.potapov here is a node.js script that allows to reproduce the issue. Please refer to the readme file from archive for more info on how to run it.
aspose-slides-debug.zip (175.4 KB)

@lumentric,
Thank you for the issue details. It will take me some time to investigate the case. I will get back to you soon.

@lumentric,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESCLOUD-1992

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.