We use Aspose to populate a PDF with data. Our code hasn’t changed, but it suddenly is getting an error calling your server in the function: client->send($request, $options)
PHP Fatal error: Uncaught Aspose\PDF\ApiException: [401] cURL error 18: transfer closed with outstanding read data remaining (see libcurl - Error Codes)
Here is the PHP code where its throwing an exception:
public function copyFileWithHttpInfo($src_path, $dest_path, $src_storage_name = null, $dest_storage_name = null, $version_id = null)
{
$returnType = ‘’;
$request = $this->copyFileRequest($src_path, $dest_path, $src_storage_name, $dest_storage_name, $version_id);
try {
$options = $this->createHttpClientOption();
try {
$response = $this->client->send($request, $options);
} catch (RequestException $e) {
throw new ApiException(
"[{$e->getCode()}] {$e->getMessage()}",
$e->getCode(),
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
);
}