Transient Document uploaded Programmatically is Always Cancelled
Whenever i upload a pdf document to the transientDocument endpoint, i always get a transientDocumentID and i'm also able to use it to create an agreement but whenever i try to add fields to the agreement, i get a message "The Agreement is not in Authoring Mode". When i check the status of the file, it shows that the agreement is Cancelled and then i get a mail from adobe:
Have changed the pdf being uploaded to test if its an issue with the document but its not, the same thing happens for every pdf document i upload. But whenever i use the adobe sign api rest v6 page to upload the same pdf files, i don't get any errors and it works. This is my code for uploading the document:
headers = {
'Authorization': f'Bearer {ACC_TOKEN}'
}
file = {
'File-Name': 'coo.pdf',
'File': open('coo.pdf','rb')
}
updoc = requests.post("https://api.eu1.adobesign.com/api/rest/v6/transientDocuments",files=file,headers=headers)
Whenever i add the 'Content-Type' as 'multipart/form-data' the upload doesn't succeed. Have been suspicious if it has something to do with the document upload issues. But at least i should get an error when uploading it. Can someone please point out what i'm doing wrong. Have been trying to solve this issue for some days now. And the issue keeps pointing to uploading the transientDocument. Also, i'm using a developers account, can this in anyway be the cause of the issue?
