Validation error: message: Bad Request while trying to generate upload presigned URI
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
The forum made the , part of the URL, if you copy and paste it minus that, it should work.

