Error due to - 'Internal Exception' when uploading Sign-generated PDF file to workdrive via Deluge in Zoho CRM

Error due to - 'Internal Exception' when uploading Sign-generated PDF file to workdrive via Deluge in Zoho CRM

Hi

I wasnt getting this error a few days ago and my code had not changed, so I'm wondering if there's a Zoho bug somewhere?

I am downloading a PDF file from a Zoho Sign url using invokeurl and then uploading it to a Workdrive folder using zoho.workdrive.uploadFile. 

I can upload a PDF I get from a public URL to the Workdrive folder using this code, but I get an Internal Exception when I retrieve the file from the Sign url eg. https://sign.zoho.com.au/api/v1/requests/[REQUEST NO]/pdf"

The file is successfully retrieved from the Sign url (I can email it to myself as an attachment).

I've isolated the part of my code that's giving me the error:

// Get the file from the Zoho Sign url
pdfAttachmentTest = invokeurl
[
type :GET
connection:"workdrive_oath_connection"
response-format:FILE

];
// Confirm I have retrieved the file by emailing it to myself.
sendmail
[
from :zoho.adminuserid
to :"EMAILHERE"
subject :"pdfAttachmentTest"
message :pdfAttachmentTest
Attachments :file:pdfAttachmentTest
]
// Try to save the PDF to a folder
response = zoho.workdrive.uploadFile(pdfAttachmentTest,"folderid","test.pdf",true,"workdrive_oath_connection");

Thanks.

Marcus
    • Sticky Posts

    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are
    • Kaizen #152 - Client Script Support for the new Canvas Record Forms

      Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
    • Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script

      Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.
    • Kaizen #210 - Answering your Questions | Event Management System using ZDK CLI

      Hello Everyone, Welcome back to yet another post in the Kaizen Series! As you already may know, for the Kaizen #200 milestone, we asked for your feedback and many of you suggested topics for us to discuss. We have been writing on these topics over the