Skip to main content
Participant
September 6, 2023
Question

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

  • September 6, 2023
  • 1 reply
  • 1212 views

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?

    This topic has been closed for replies.

    1 reply

    Participant
    September 6, 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.

    Raymond Camden
    Community Manager
    Community Manager
    September 6, 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. 

    Participant
    September 7, 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.