Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
I was wondering if it is possible to change the signing ceremony in the REST API after a package has been created. Example: I create a package that is set with "inPerson:false", meaning that we will

Replies Created

Reply to: error.eslx.inputValidation.documentPreverifyError

0 votes
I am using PHP to interact with esignlive API, and I just started getting this same error when I upgraded from PHP5.6 to PHP7.1 I've narrowed it down in the process to where it tries to send up the PDF document, that is where the error appears to be occuring. I narrowed my SendRequest code (using CURL) down to the barebones needed to work, and it will work fine on PHP5.6, but throws the error on PHP7.1. I went back and re-generated the same PDF file using both versions of PHP, and then did a differential comparision on the files, and except for the create time, the files unicode are identical, so it's not that the PDF generated using v7 is encoded differently. Please advise. Thanks! Chris

Reply to: error.eslx.inputValidation.documentPreverifyError

0 votes
Hi Michael, Yes, I'm getting the same error message: {"messageKey":"error.internal.default","technical":"error.eslx.inputValidation.documentPreverifyError [#190b20cc-bc7d-450b-baca-653474e73421]","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"} The code that I am using to create the transaction works on PHP 5.6 but not on PHP 7.1. Or I should say the code runs, it's just that the response I get back from the REST API is successful on the old version, and gives me the error on the new version. Below is a snip of the code that is running, and when I print the error is the same as above. private function sendRequestNEW($type, $json, $document) { $postfields = array("file" => $document,"payload" => $json); $headerOptions = array('Authorization: Basic ' . $this->key); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://sandbox.esignlive.com/api". $type); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_FAILONERROR, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); curl_setopt($ch, CURLOPT_HTTPHEADER, $headerOptions); $response = curl_exec($ch); $err = curl_error($ch); curl_close($ch); if($err) return $err; else return $response; } The PDF's are created using PHP (FPDF), but regardless of which version I use to create them, they are identical, so it's not that the PDF file is getting generated differently based on the different PHP versions. Thanks! Chris

Reply to: error.eslx.inputValidation.documentPreverifyError

0 votes
Hi Haris, Yes they are both the same. (below is a snip). private function sendRequestNEW($type, $json, $document) { $postfields = array("file" => $document,"payload" => $json); $headerOptions = array('Authorization: Basic ' . $this->key); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://sandbox.esignlive.com/api". $type); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_FAILONERROR, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); curl_setopt($ch, CURLOPT_HTTPHEADER, $headerOptions); $response = curl_exec($ch); $err = curl_error($ch); curl_close($ch); if($err) return $err; else return $response; } I'm not sure if I can work with other documents, tomorrow I will try and see if I can use the code to download evidence summary file from a previously completed one. Thanks! Chris

Reply to: error.eslx.inputValidation.documentPreverifyError

0 votes
Harris, I tested your code on our server and it does seem to work using PHP7.1. That being said, I see that the example you gave me is doing everything for the package in 1 single CURL with everything in the package (including the document) being part of the POSTdata. Our system has been using something based of the example you created a while back with the "PackageCreation" class that builds the package, documents, and sign in different segments. The error we are seeing on PHP7.1 is occuring directly in the CURL request where it tries to build the document. Can you try out that code that you used in your example with the PackageCreation package on your PHP7.1 setup and see if you get the error that I am getting? Or do you have any idea what the error message is trying to convey? It seems like it might not like the PDF document that I'm uploading, but it's the same document, so perhaps its something with how 7.1 is encoding it as compared to 5.6? Thanks! Chris

Subscriptions

Topics Replies Freshness Views Users
Hi, I am unable to create a package with the JAVA sdk for the attached document. I am getting an eslServerException with a technical message ' error.eslx.inputValidation.documentPreverifyError'.
21 5 years 6 months ago 228
Profile picture for user Duo_Liang
Profile picture for user harishaidary
I was wondering if it is possible to change the signing ceremony in the REST API after a package has been created. Example: I create a package that is set with "inPerson:false", meaning that we will
1 7 years 3 months ago 6
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.