rest - DocuSign Api - blank excel/word document throws a large exception - and returns stack trace -
during testing 1 of our developers has attempted create envelope containing blank excel document. has not caused creation process fail, returns large stack trace via rest api:
{ "errorcode": "unable_to_convert_document", "message": "system unable convert document pdf. unable convert document(blank xlsx document) pdf. error: userid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx ipaddress:xx.xxx.xxx.xx source:apirestv2:system.invalidoperationexception: operation fail: operationfailed\r\n @ platform.common.throws.invalidoperationexceptionif(boolean condition, string message, object[] args)\r\n @ sandbox.client.sandboxhostcommstcpclient.dosandboxoperation(string module, string method, byte[] payload)\r\n @ sandbox.client.sandboxclient.dooperation(string module, string method, byte[] payload, predicate`1 issuccess, string& errormessage)\r\nsystem.invalidoperationexception: operation fail: operationfailed\r\n @ platform.common.throws.invalidoperationexceptionif(boolean condition, string message, object[] args)\r\n @ sandbox.client.sandboxhostcommstcpclient.dosandboxoperation(string module, string method, byte[] payload)\r\n @ sandbox.client.sandboxclient.dooperation(string module, string method, byte[] payload, predicate`1 issuccess, string& errormessage)\r\nsystem.invalidoperationexception: operation fail: operationfailed\r\n @ platform.common.throws.invalidoperationexceptionif(boolean condition, string message, object[] args)\r\n @ sandbox.client.sandboxhostcommstcpclient.dosandboxoperation(string module, string method, byte[] payload)\r\n @ sandbox.client.sandboxclient.dooperation(string module, string method, byte[] payload, predicate`1 issuccess, string& errormessage)\r\n" }
the same issue occurs blank word documents. wondered if normal? not being able include blank document makes sense (why need to?) wouldn't expect receive exception level of detail relating internal workings of api.
i believe expected behavior (not allow blank file), i've received similar error message before when attempting add blank (txt) file envelope. if add single character either of files you're testing (so file size no longer 0 bytes), should eliminate error.
that said though, value of message attribute error i've seen in past "system unable convert document pdf. unable convert document(blank xlsx document) pdf." -- don't believe i've ever seen additional text follows in message you've posted. seems mistake on docusign's part (i.e., info shouldn't included in message attribute value).
Comments
Post a Comment