Copy link to clipboard
Copied
Hi!
I am following the PDF Services API instructions. using POSTMAN
And I get stuck when trying to upload the asset
1. I authenticate and create a token (https://pdf-services.adobe.io/token)
(receive access token)
2. I create an asset (POST https://pdf-services.adobe.io/assets)
(tried different mediaType including "application/pdf")
(receive uploadUri and assetId)
3. I try to upload a file (PUT to uploadUri from before)
and I constantly receive this error
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
Copy link to clipboard
Copied
It's hard to help without seeing your Postman in action. Can you confirm it picked up the variables from step 2?
Copy link to clipboard
Copied
Thank you for answer @Raymond Camden , I am not sure which variables you are referring to.
See request copied from the "Getting Started" page
curl --location -g --request PUT 'https://dcplatformstorageservice-prod-us-east-1.s3-accelerate.amazonaws.com/b37fd583-1ab6-4f49-99ef-d716180b5de4?X-Amz-Security-Token={{Placeholder for X-Amz-Security-Token}}&X-Amz-Algorithm={{Placeholder for X-Amz-Algorithm}}&X-Amz-Date={{Placeholder for X-Amz-Date}}&X-Amz-SignedHeaders={{Placeholder for X-Amz-SignedHeaders}}&X-Amz-Expires={{Placeholder for X-Amz-Expires}}&X-Amz-Credential={{Placeholder for X-Amz-Credential}}&X-Amz-Signature={{Placeholder for X-Amz-Signature}}' \
--header 'Content-Type: application/pdf' \
--data-binary '@{{Placeholder for file path}}'
to the best of my understanding, I replace the URL with the uploadUri received from the previous request (create asset). see screenshot below of the create asset:
So what I do is take this uploadUri, and send the PUT request to it along with the file I wish to upload.
This URL btw (received in step #2) is already invalid when trying to access it directly. so I don't think the problem is in step #3 but with the uploadUri received in step #2.
Copy link to clipboard
Copied
Can you add screenshots of the PUT operation?
Copy link to clipboard
Copied
Thanks @Raymond Camden I had an env issues where I was not using the updated ones.
Is there an API for listing existing assets? I could not find such (before creating jobs). or how to verify that a file was uploaded successfully ?
Copy link to clipboard
Copied
There is no API to list asssets but you can get the metadata (https://developer.adobe.com/document-services/docs/apis/#tag/Assets/operation/asset.metadata). Our storage system is only temporary, 24 hours, and is not meant to be permanent.
Copy link to clipboard
Copied
Thanks for your assistance! @Raymond Camden