SDK does not expose error mesages
Monday, March 13, 2017 at 03:54amThe following code does not return the specific error message.
try { PackageId packageId = eslClient.CreatePackage(documentPackage); } catch (Silanis.ESL.SDK.ServerError ex) { //What caused the error? }Is there a special way to get the actual error code from the SDK (Version 11.0.1.0 of the Silanis.ESL.dll) without rewriting the SDK to expose real errors and codes (like it does for the java SDK)? Using the above code, we included a bad connection string (to a non-existent URL) on purpose, and are getting error message like the following when using the SDK: Error returned as a string: Silanis.ESL.SDK.EslException: Could not get application version. Exception: Unexpected character encountered while parsing value: <. path="" line="" position=""> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. path="" line="" position="" at="" newtonsoft.json.jsontextreader.parsevalue="" newtonsoft.json.jsontextreader.readinternal="" newtonsoft.json.jsontextreader.read="" newtonsoft.json.serialization.jsonserializerinternalreader.readfortype="" reader="" jsoncontract="" contract="" boolean="" hasconverter="" newtonsoft.json.serialization.jsonserializerinternalreader.deserialize="" type="" objecttype="" checkadditionalcontent="" newtonsoft.json.jsonserializer.deserializeinternal="" newtonsoft.json.jsonconvert.deserializeobject="" value="" jsonserializersettings="" settings="" silanis.esl.sdk.systemservice.getapplicationversion="" end="" of="" inner="" exception="" stack="" trace="" why="" the="" real="" error="" is="" important:="" a="" connectivity="" might="" mean="" we="" take="" action="" to="" notify="" operations="" group="" ensure="" up.="" user="" account="" tell="" us="" owner="" have="" on="" record="" action.="" i="" can="" you="" that="" final="" response="" got="" from="" r="" following="" forum="" thread="" incorrect="" above="" message="" when="" using="" client="" sdk.="" href="https://developer.esignlive.com/forums/topic/list-of-error-codes-error-messages-error-name/" target="_blank">https://developer.esignlive.com/forums/topic/list-of-error-codes-error-messages-error-name/ I’m looking forward to determining how the real errors can be found, without everyone who uses the SDK needing to rewrite it to get those real error codes.
Reply to: SDK does not expose error mesages
Monday, March 13, 2017 at 05:51amReply to: SDK does not expose error mesages
Monday, March 13, 2017 at 09:21am