We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Word document to PDF conversion using Aspose.Words REST API throws UnsupportedApiVersion

We have an application that uses Aspose to convert word document to PDF.
On 16/07/2021 we got the following error:
UnsupportedApiVersion. The HTTP resource that matches the request URI http://api.aspose.com/v1.1/words/convert?format=pdf&appSID=...;signature=...= does not support the API version ‘1.1’

We use the same code to make this conversion and sometimes it works, sometimes it doesn’t.

Could you see what we do wrong?



Please note you are using both obsolete URI and API version. Please use base URI " https://api.aspose.cloud " and API version 4.0 as following. It will resolve the issue.

# First get Access Token
# Get Client ID and Customer Secret from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token" 
-d "grant_type=client_credentials&client_id=xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxx" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

# convert DOCX to PDF
curl -X PUT "https://api.aspose.cloud/v4.0/words/convert?format=pdf" 
-H "accept: application/octet-stream" 
-H "Authorization: Bearer [Access_Token]" 
-H "Content-Type: multipart/form-data" 
-H "x-aspose-client: Containerize.Swagger" 
-F "document":"@C:/Temp/SAMPLE1.docx"
--output C:/Temp/SAMPLE1.pdf

Thank you for your reply.
Whe have 02 applications to be updated .
Will all our future requests (with old URI and API) fail ? What is the rule ?
Could you please explain, why sometimes it works (the old URI and API version 1.1)?


It may be due to some memory management issue. I am afraid we are not maintaining api.aspose.com and API version V1.1 anymore. So it is quite difficult to confirm the exact reason. However, it is highly recommended to use api.aspose.cloud URI and the latest API versions of Aspose Cloud APIs. Please feel free to contact us if you face any issues with this upgradation.

Thank you. We will upgrade to 4.0 and use api.aspose.cloud

1 Like