We are receiving the following error every time we try to connect to the API, please can you help ASAP:
An uncaught Exception was encountered
Type: Aspose\Words\ApiException
Message: [500] Error connecting to the API (https://api.aspose.cloud/v4.0/words/convert?format=pdf)
Filename: /home/197323.cloudwaysapps.com/gzthwqejqr/public_html/application/web/third_party/aspose/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php
Line Number: 2649
Backtrace:
File: /home/197323.cloudwaysapps.com/gzthwqejqr/public_html/application/web/third_party/aspose/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php
Line: 2608
Function: convertDocumentWithHttpInfo
File: /home/197323.cloudwaysapps.com/gzthwqejqr/public_html/application/web/controllers/MO/Eviction.php
Line: 6453
Function: convertDocument
File: /home/197323.cloudwaysapps.com/gzthwqejqr/public_html/index.php
Line: 315
Function: require_once
Sorry for the inconvenience; I contacted our admin team, as it seems for some reason, some requests have failed, but others work fine.
Why it’s happening for some requests?
We need to fix it ASAP.
I can tell you why only when admins find out what is happening.
Once I have any new information, I will contact you.
The issue is fixed. Sorry for the inconvenience.
It was a virtual machines outage.
Hey @yaroslaw.ekimov ,
i also have the same problem. I get the exact same error message:
[500] Error connecting to the API (https://api.aspose.cloud/v4.0/words/convert?format=pdf)
Can you please check that? Thank you!
I just checked, and the API is working now.
@yaroslaw.ekimov thank you! Now I have another problem:
I’m using the PHP library aspose/words-sdk-php.
I just want to update a table of contents of a Word document.
My code looks like this:
$updateRequest = new UpdateFieldsOnlineRequest(
$strFile, NULL, NULL, NULL, NULL);
$response = $wordsApi->updateFieldsOnline($updateRequest);
On every request i got this error message:
file: vendor/aspose/words-sdk-php/src/Aspose/Words/ObjectSerializer.php
line: 153
message: Undefined array key “Content-Type”
It is worth mentioning that everything was still working as usual last week. I have also already updated to the latest version with composer (25.1.0).
Yes, I’m afraid it is a known issue, and the fix will be available in 25.2 PHP SDK. Meanwhile, you can use not an online method.