Not able to convert excel to pdf

Hello Support,

Getting below error. Any update in system? Previously same code was working.

Fatal error: Uncaught Aspose\Cells\Cloud\ApiException: [401] cURL error 18: transfer closed with outstanding read data remaining (see libcurl - Error Codes) in \sdk\vendor\aspose\cells-sdk-php\lib\Api\LightCellsApi.php:1328 Stack trace: #0 \sdk\vendor\aspose\cells-sdk-php\lib\Api\LightCellsApi.php(1303): Aspose\Cells\Cloud\Api\LightCellsApi->postExportWithHttpInfo() #1 C:\inetpub\vhosts\seqrdoc.com\httpdocs\pdf2pdf\sdk\test3.php(38): Aspose\Cells\Cloud\Api\LightCellsApi->postExport() #2 \sdk\test3.php(141): Workbook->runCloudAPI() #3 {main} thrown in \sdk\vendor\aspose\cells-sdk-php\lib\Api\LightCellsApi.php on line 1328

@seqrdocs

Due to the change of the Authority address, the existing SDK package is abnormal, please upgrade to the latest version 24.5.

I have upgraded sdk to 24.5. Now I am getting 500 : Internal server error message.

@seqrdocs ,
Please post your code and test file. We will check it ASAP.

@wangtao,

Please find code attached
Code.docx (22.4 KB)

I am trying to convert .xlsm file to PDF.

@seqrdocs ,
I checked your code and found that you are using the LightCellsApi, which is out of date and does not exist in the latest version.
Please refer to the code below: aspose-cells-cloud-php/Examples/Example_PutConvertWorkbook.php at master · aspose-cells-cloud/aspose-cells-cloud-php · GitHub

Okay. Thanks for support.

@seqrdocs ,

Thank you for your response. Please keep us updated if you encounter any further issues.

@seqrdocs ,
Due to billing and authentication issues, Cells Cloud has temporarily rolled back to the previous version, if you encounter authentication problems again, please re-use the https://api.aspose.cloud/connect/token to obtain an access token

@wangtao
Thanks for update. No issues in old version.
Please update us before when new version realeases.

@seqrdocs ,
Thank you for your response. Please keep us updated if you encounter any further issues.

@wangtao ,

We are facing issue with this API.
It gives Internal Server Error. 500.

Sometime its gives below error.


Fatal error: Uncaught Aspose\Cells\Cloud\ApiException: [502] Server error: `POST

https://api.aspose.cloud/v3.0/cells/export?objectType=worksheet&format=pdf` resulted in a 502 Bad Gateway

response:

<html>

<head><title>502 Bad Gateway</title></head>

<body>

<center><h1>502 Bad Gateway</h1></center>

<hr><center>ngin (truncated…)

in C:\inetpub\vhosts\seqrdoc.com\httpdocs\pdf2pdf\sdk\vendor\aspose\cells-sdk-php\lib\Api\LightCellsApi.php:1328

Stack trace:

#0 C:\inetpub\vhosts\seqrdoc.com\httpdocs\pdf2pdf\sdk\vendor\aspose\cells-sdk-php\lib\Api\LightCellsApi.php(1303):

Aspose\Cells\Cloud\Api\LightCellsApi->postExportWithHttpInfo()

#1 C:\inetpub\vhosts\seqrdoc.com\httpdocs\pdf2pdf\sdk\excel2pdf_api.php(38):

Aspose\Cells\Cloud\Api\LightCellsApi->postExport()

#2 C:\inetpub\vhosts\seqrdoc.com\httpdocs\pdf2pdf\sdk\excel2pdf_api.php(139): Workbook->runCloudAPI()

#3 {main}

thrown in

C:\inetpub\vhosts\seqrdoc.com\httpdocs\pdf2pdf\sdk\vendor\aspose\cells-sdk-php\lib\Api\LightCellsApi.php on line

1328

@seqrdocs ,
Network problems usually cause 502, and we will do further checks as soon as possible.

@wangtao ,

Today again we are facing same issue. Please check.

@wangtao , It occurs oftenly. Sometime its works and some time its not.

@seqrdocs ,
Can you provide some information about the account you are calling the API (e.g. clientId), as well as the frequency of calls to the API and the size of the file being processed, we’ll continue to look at the system logs.

@wangtao ,

Thanks for quick response.
Client Id : df5a409f-b8a8-4b73-aa8a-1d0cfed271da
PDF size : 82kb
Converting xlsm to pdf.

Code Snippest:

$pageType=“Single”;
$workbook = new Workbook(ExelFileName,PdfFileName,$pageType);
$output=$workbook->runCloudAPI();

@seqrdocs ,
Thank you for your provided information. We will check it ASAP.

@wangtao ,
Please revert ASAP. Still we are facing same issue.