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

Validation error: message: Bad Request while trying to generate upload presigned URI

New Here ,
Sep 06, 2023 Sep 06, 2023

Following the straightforward instructions in the Getting Started page.  I successfully generated a bearer token.  Now when I try to generate the upload pre-signed URI, like this:

 

curl.exe --location -- request  POST 'https://pdf-services.adobe.io/assests' --header 'X-API-Key: client_id_goes_here' --header 'Authorization: Bearer bearer_token_goes_here' --header 'Content-Type: application/json' --data-raw: '{ "mediaType":"application/pdf"}'

 

I then get the Bad Request error.  Any idea what I'm missing?

945
Translate
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
New Here ,
Sep 06, 2023 Sep 06, 2023

Just realized I mistyped the "-- request" in the question above.  The output noted that it's an unnecessary usr of --request, POST is already inferred.  So I stripped that out.  No change.

Translate
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 ,
Sep 06, 2023 Sep 06, 2023

I tried it according to our docs here, https://developer.adobe.com/document-services/docs/overview/pdf-services-api/gettingstarted/, and it worked just fine. Maybe it's a Window difference with curl.exe? I'm testing in Ubuntu via WSL. 

Translate
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
New Here ,
Sep 07, 2023 Sep 07, 2023

Thanks for the reply, Raymond.  The link you provided leads to a 404 error.  It may be something with the version of curl that's part of Windows 11.  I switched to using the Boomerang Chrome plug-in and was able to get the requested URI.

Translate
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 ,
Sep 07, 2023 Sep 07, 2023
LATEST

The forum made the , part of the URL, if you copy and paste it minus that, it should work. 

Translate
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
Resources