We were unable to create your agreement because we had a problem converting
Hi,
I got an the following error on calling upload document API (/transientDocuments) using .net code:
We were unable to create your agreement [DEMO USE ONLY] 0707test because we had a problem converting your document 101112 - Captiva Series II Product Overview - Copy (9).pdf to PDF. This may only be a temporary problem. However, if you have tried more than once to create this agreement with the same document, please visit our online support system. |
To ensure that you continue receiving our emails, please add adobesign@adobesign.com to your address book or safe list. |
but working fine using postman with the same file, and please find the .net code calling the API (Copy from postman code and used before):
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, adobeSignApiUrl + "transientDocuments");
request.Headers.Add("Authorization", "Bearer " + token);
request.Headers.Add("Cookie", "JSESSIONID=21D6CF196F61CD00C6869452F4EBA735.webapp-prod-b-3");
var content = new MultipartFormDataContent();
//content.Add(new StringContent(".pdf"), "Mime-Type");
content.Add(new StringContent(fileName), "File-Name");
content.Add(new StreamContent(File.OpenRead(filePath)), "File", filePath);
request.Content = content;
logger.LogInformation("transientDocument :: calling " + filePath);
var response = client.SendAsync(request).Result;
response.EnsureSuccessStatusCode();
string resString = await response.Content.ReadAsStringAsync();
logger.LogInformation("transientDocument :: resString " + resString);
so please any help, I tried many solution but nothing work with me.
thank you
