• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adobe Acrobat Sign NO_FILE_CONTENT Error in transientDocuments

New Here ,
Aug 22, 2022 Aug 22, 2022

Copy link to clipboard

Copied

I am trying out the transientDocuments API. It works when I use the https://secure.in1.adobesign.com/public/docs/restapi/v6#!/transientDocuments/createTransientDocument or Postman. But keep getting the following error while trying in code using Guzzle as suggested here https://docs.guzzlephp.org/en/stable/quickstart.html#uploading-data

 

Error: `400 Bad Request` response: {"code":"NO_FILE_CONTENT","message":"Must provide file body"}

Sending request to this URL https://api.in1.adobesign.com/api/rest/v6/transientDocuments

 

$file_name = 'shingle-heat-and-foam-roof-decks.pdf';

$post_data = [
    'multipart' => [
        [
            'File' => Utils::tryFopen(public_path("document-files/$file_name"), 'r'),
            'Mime-Type' => 'text/plain',
            'File-Name' => "$file_name",
            'name'     => "$file_name",
            'contents' => Utils::tryFopen(public_path("document-files/$file_name"), 'r'),
        ],
    ]
];

$response = $client->request('POST', $url, $post_data);

 

Postman: postman.png

 

Not sure what I am missing. Had connected to chat support but did not get proper help. Can you please look into this and share the code that works?

Views

349

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

LATEST

Hi Chittaranjan25505360colq,

 

Sorry for the delay in response.

 

We have checked that you are using the Acrobat Sign Developer service.

As you have a question related to API integration, the experts can best answer it.

Moving this thread to the Acrobat Sign Developer board for visibility.

 

You may also contact the pre-sales team. They will be able to provide you the pre-sales technical assistance and share the correct information.

Please refer to the following link to contact them: https://acrobat.adobe.com/us/en/sign/pricing/plans.html. You may use the Contact us button for Adobe Sign Solutions under the team tab.

 

Thanks,

Meenakshi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines