Original PDF Docoument: User is requesting the ability to download the filled original PDF for their form submissions via URL/API

  • Messing_Antonin
    Asked on March 26, 2021 at 4:09 PM

    Hello,

    I am using Zapier in order to integrate Jotform to Google Drive in the way I want.

    What I need to do is create folder with a specific hierarchy using the field in my Jotforms. Then, I upload the filled-original pdf to Google Drive with Jotform API using this command : https://api.jotform.com/pdf-converter/{form_id}/fill-pdf?download=1&submissionID={submission_ID}&apikey={API_key}

    It works, but not all the time. In fact, sometimes I am getting this error : ExternalHTTPSConnectionPool(host='www.googleapis.com', port=443): Read timed out. (read timeout=39)

    I tried placing delays in my Zapier to give Jotform the time to process the PDF document, but it did not help, I am still getting this error a lot of times.

    Thank you

    Jotform Thread 2996803 Screenshot
  • Patrick_R
    Replied on March 27, 2021 at 9:19 AM

    Hello! Kindly note that this particular URL to download original PDFs does work but we do not officially support this command (it has not been mentioned in our documentation).

    However, it does work and you can use it for now. The timeout error that you're getting can't be fixed on JotForm's end as it may take some time to generate the PDF based on the PDF size and server load.

    If you're able to download the PDF after some time using the same link manually or by manually replaying the failed zap; then it means the link will work after some time.

    It seems that Zapier cuts the connection in between after 30 seconds if no response is received from the endpoint.

    Reference:

    Maybe autoreplay for failed Zaps feature of Zapier can be useful here as it allows to make the same call automatically after some time for failed zaps.

    Reference: replay-failed-zap-runs#turn-on-autoreplay-for-failed-zap-runs

    Please give it a try. I hope this helps.

    Thank you!

  • Messing_Antonin
    Replied on March 29, 2021 at 9:55 AM

    Thank you for the answer.

    Adding a 5 minutes delay seems to works for most of the cases.

    Will there be an official command to download the filled original PDF soon?

    Thank you

  • Patrick_R
    Replied on March 29, 2021 at 11:31 AM

    Hello! Glad to know that you were able to resolve it. Maybe you can get the timeout limit increased by contacting Zapier support as well.

    Regarding your query to officially support downloading of original PDF via a URL, I've forwarded a feature request to the backend team.

    If and when this gets implemented, we'll let you know via an email under this thread.

    Thank you!