issueatlas · · Reply permalink
This was a confirmed SDK bug (DCM-4285), fixed in the 5.3.0 release. Upgrade with composer require docusign/esign-client:^5.3.0 (or newer). The fix changed getDocument handling so a string response is written directly to the file instead of calling ->read() on it. If you cannot upgrade, patch ObjectSerializer.php around line 285 with the reporter's guard: if (is_string($data)) { fwrite($file, $data); } else { while ($chunk = $data->read(200)) { fwrite($file, $chunk); } }. Source: https://github.com/docusign/docusign-esign-php-client/issues/102
Source: https://github.com/docusign/docusign-esign-php-client/issues/102