We get server errors and none of the calls works anymore. See the html file attached.
Hi,
We get errors in the Words component regarding the “splitDocument” calls. We validated these errors using multiple different servers.
- Document is uploaded, which seems to be okay
- Words ‘statistics’ is called, which seems to be okay
- The document is split to .png files, which returns errors
- The document is split to .html files, which returns errors
Hi Richard,
We are investigating it further and will update you shortly. We are sorry for the inconvenience.
Best Regards,
Hi Richard,
We have started the investigation before you posted here on the issue because our systems reported it.
The general problem with all api calls down was fixed, now we are investigating your problem related to the words API.
Can you please provide the AppSID you are using ?
Thanks and we are really sorry for the incovenience,
Daniel Gherasim
Hi Daniel, thanks for the update on the progress. Hereby our PROD sid:
1ee26174-a1c7-4847-ae29-9d46fabb1d04
Hi Richard,
Sorry, we were not able to notice this issue even with your account. We tested some documents with a test account and everything was working fine. One of your documents was tested with your account and it did not produce any error.
We were able to notice 'Specified cast is not valid' error while splitting one of your documents to HTML but same document was split to PNG without any issue. This is not a general issue and issue is related to a specific document only. Such issues will be fixed in Aspose.Words API. We will log the issues you reported in several new threads (if reproduced) and update you in the respective threads.
Can you please test again and share if you are able to reproduce this issue with some specific documents only, or all of your split requests are generating the same server error?
Best Regards,
Hi Muhammad,
/** @var Folder $folder /
$folder = $this->container->get(‘aspose.storagefolder’);
$folder->uploadFile($this->fileFolder . $filePath);
/* @var Document $document */
$document = $this->container->get(‘aspose.wordsdocument’);
$fileInfo = pathinfo($filePath);
$document->setFileName($fileInfo[‘basename’]);
$options = array(
‘format’ => ‘html’,
‘zipOutput’ => ‘true’,
);
$zipResult = $document->splitDocument($options);
var_dump($zipResult);
format
and zipOutput
parameters work for you as well? Yes, all our split calls are having these errors and is costing us lots of customers already. I’ve been debugging this a bit further, and the error is with downloading the .zip file after splitting. So, the splitting is okay but downloading a file using Folder does not work.
Basically downloading the result from the split call errors, using cURL for a GET-request to the following unsigned URL trigger the error:
http://api.aspose.com/v1.1/storage/file/http://api.aspose.com/v1.1/words/67559%20-%20vergeleken%20document%20Word%20based%20on%20Word%20level.html.zip?appSID=&signature=
Edit: after 1.5h of no response I did take a look at the problem again, and found out what happened. Since the morning the API is returning absolute URLs where it did return relative URLs before. This is a BC break and should be fixed asap, especially because the URL itself is incorrect and should be something with “/storage/file” in order to download it.
{#198
+“SourceDocument”: {#199
+“Href”: “http://api.aspose.com/v1.1/words/AOD CARMEN FRANCISCO 23-03-2016.docx”
+“Rel”: “self”
+“Type”: null
+“Title”: null
}
+“Pages”: array:147
+“ZippedPages”: {#347
+“Href”: “http://api.aspose.com/v1.1/words/AOD CARMEN FRANCISCO 23-03-2016.html.zip”
+“Rel”: “zippedpages”
+“Type”: null
+“Title”: null
}
}
Hi Richard,
Can you please try using the basename function to extract the file name from the ZipedPages->Href uri?
Best Regards,
Hi Richard,
This is to update you that our platform team is also investigating why the output URI has changed which produced this issue at your end. We will keep you updated about our findings.
Best Regards,
Hello Muhammad, I understand that would fix the bug but basically the answer is a huge no because we are not willing to make dirty workaround fixes for bugs that you guys introduced without properly testing them. This is something that might affect all Aspose Cloud results so should be fixed API-side.
Okay great news on the output URI, please keep us up-to-date.
Hi Richard,
Hi Richard,
Even if we change the API to return the same response (as it was returning before the latest changes), it is highly recommended to use basename with all Href values that you use as file names. This will make your code more stable and it will keep working in such cases.
Best Regards,
Hi Muhammad, then that’s something you should build in your SDK before putting such a major change into production. We will update you once we tested and released our own hotfix.
I’ve contacted Australia office by phone, which informed me to contact support. Again 1.5h and so far still no response. Please contact us by phone ASAP in order to discuss this urgent matter: +31 13 822 3424
Hi Richard,
Our product team is fixing it. It will be fixed soon. We will update you as soon as it is fixed.
We are extremely sorry for the inconvenience.
Best Regards,
Hello Muhammad, it has been three hours so please provide us with an update asap. We propose you rollback the version that still was working before yesterday morning 11am, or you provide us with a reliable ETA for the fix.
Hi Richard,
We have done the same. Changes have been rolled back to previous version. It took some time to roll the changes back. Previous version is live now. You may test again and share if you still see any issue.
Sorry again for the inconvenience.
Best Regards,