BenX

500 error thrown while adding a government pdf

0 votes
I am getting the error below when I filled in a government pdf and send it over to esignlive. Could you please take a look and let me know what needs to be done here?
Silanis.ESL.SDK.EslServerException: Could not upload documents to package. Exception: The remote server returned an error: (500) Internal Server Error. HTTP POST on URI https://sandbox.e-signlive.com/api/packages/e-c31K6_hT0TsAYj0n9EepjxjyY=/documents. Optional details: {"messageKey":"error.internal.default","technical":"error.eslx.inputValidation.documentPreVerifyInvalidResponseNumberError [#20db89f5-e8c8-4587-b53b-12364457fe76]","message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","code":500,"name":"Unhandled Server Error"} ---> Silanis.ESL.SDK.EslServerException: The remote server returned an error: (500) Internal Server Error. HTTP POST on URI https://sandbox.e-signlive.com/api/packages/e-c31K6_hT0TsAYj0n9EepjxjyY=/documents. Optional details: {"messageKey":"error.internal.default","technical":"error.eslx.inputValidation.documentPreVerifyInvalidResponseNumberError [#20db89f5-e8c8-4587-b53b-12364457fe76]","message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","code":500,"name":"Unhandled Server Error"} ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at Silanis.ESL.SDK.Internal.HttpMethods.MultipartPostHttp(String apiToken, String path, Byte[] content, String boundary, AuthHeaderGenerator authHeaderGen, IDictionary`2 headers)
   --- End of inner exception stack trace ---
   at Silanis.ESL.SDK.Internal.HttpMethods.MultipartPostHttp(String apiToken, String path, Byte[] content, String boundary, AuthHeaderGenerator authHeaderGen, IDictionary`2 headers)
   at Silanis.ESL.SDK.RestClient.PostMultipartPackage(String path, Byte[] content, String boundary, String json)
   at Silanis.ESL.SDK.Services.PackageService.UploadDocuments(PackageId packageId, IList`1 documents)
   --- End of inner exception stack trace ---
   at Silanis.ESL.SDK.Services.PackageService.UploadDocuments(PackageId packageId, IList`1 documents)
   at Silanis.ESL.SDK.EslClient.CreatePackage(DocumentPackage package)

Reply to: 500 error thrown while adding a government pdf

0 votes
Hi BenX, Could you try uploading the same PDF directly onto your web portal: - log onto your webportal: https://sandbox.e-signlive.com/login - create a new package - upload the pdf to see whether it's the PDF or the metadata that caused 500 error? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: 500 error thrown while adding a government pdf

0 votes
Hi Duo, I got no issue uploading the PDF. So does it mean that it is the metadata issue?

Reply to: 500 error thrown while adding a government pdf

0 votes
Hi BenX, In that case, are you using any kind of extraction? You can also share your PDF and code snippet for package creation without sensitive information to [email protected] so that I can look further into it. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: 500 error thrown while adding a government pdf

0 votes
Hi Ben, After our private troubleshoot discussion, this error:
{"messageKey":"error.internal.default","technical":"error.eslx.inputValidation.documentPreVerifyInvalidResponseNumberError [#20db89f5-e8c8-4587-b53b-12364457fe76]","message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","code":500,"name":"Unhandled Server Error"}
was caused by improper document output stream. After the code was adjusted, the error was gone and can upload the document without problem. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off