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

SignatureDoesNotMatch when Uploading an asset

New Here ,
Nov 08, 2022 Nov 08, 2022

Copy link to clipboard

Copied

I followed the instruction listed here, but when I try to upload the file with provided "uploadUri" I get this error:

[Error][Code]SignatureDoesNotMatch[/Code][Message]The request signature we calculated does not match the signature you provided. Check your key and signing method.[/Message][AWSAccessKeyId]KEY...[/AWSAccessKeyId][StringToSign]AWS4-HMAC-SHA256
20221108T222827Z
20221108/us-east-1/s3/aws4_request
386e018a9d39e5c126cb35e9366ade0c6a7b267ca8347590bfc856b71bf96cb3[/StringToSign][SignatureProvided]623c64479269adb7af1375f06c4e0d14b5ec7eb2ab50d7aa9c221b6112c5dc35[/SignatureProvided][StringToSignBytes]41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 0a 32 30 32 32 31 31 30 38 54 32 32 32 38 32 37 5a 0a 32 30 32 32 31 31 30 38 2f 75 73 2d 65 61 73 74 2d 31 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 33 38 36 65 30 31 38 61 39 64 33 39 65 35 63 31 32 36 63 62 33 35 65 39 33 36 36 61 64 65 30 63 36 61 37 62 32 36 37 63 61 38 33 34 37 35 39 30 62 66 63 38 35 36 62 37 31 62 66 39 36 63 62 33[/StringToSignBytes][CanonicalRequest]POST
/6d976ff2-6700-45d4-943f-17c2e15918ac
X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=KEY...%2F20221108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221108T222827Z&X-Amz-Expires=3600&X-Amz-Security-Token=FwoGZXIvYXdzEGgaDH131EfcKwALhyj28CLUAcmmJCUZhJ%2FeyNxzNlGI%2FtpPuRHoDWnzaOP4enDERG9JO2%2Bt94P0fg%2BzZ7klSJyYmM%2BnTS1ZFkhHisSP08%2Bc4WJc6EUt%2BjlpHBdDHYi6IQyYVAHEuMKI7CzsiK5WSnSdCTFp4I%2FltPaQ18Pr9lJ14CcYaCaFt4ndEeazU8wUOscpBDQ8MyQ12KPJKpDNMnIpwGYzf4egnmc22X1E2XUTzljaqM7wv%2FWw7N%2BX2nFl6RzL1Ti2xkAiWYCO3avwQD9XgRGLm9yZYF11KSVxaYHNNeWy1R5qKOysq5sGMi37mHZIeKsvJbZehFIDAgHAF3Bj2%2B9%2FtJpai1RJeZieCrCV6sOwGNQIP3yfo5g%3D&X-Amz-SignedHeaders=content-type%3Bhost
content-type:application/json
host:dcplatformstorageservice-prod-us-east-1.s3-accelerate.amazonaws.com

content-type;host
UNSIGNED-PAYLOAD[/CanonicalRequest][CanonicalRequestBytes]50 4f 53 54 0a 2f 36 64 39 37 36 66 66 32 2d 36 37 30 30 2d 34 35 64 34 2d 39 34 33 66 2d 31 37 63 32 65 31 35 39 31 38 61 63 0a 58 2d 41 6d 7a 2d 41 6c 67 6f 72 69 74 68 6d 3d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 26 58 2d 41 6d 7a 2d 43 72 65 64 65 6e 74 69 61 6c 3d 41 53 49 41 57 44 32 4e 37 45 56 50 49 32 43 42 54 56 57 49 25 32 46 32 30 32 32 31 31 30 38 25 32 46 75 73 2d 65 61 73 74 2d 31 25 32 46 73 33 25 32 46 61 77 73 34 5f 72 65 71 75 65 73 74 26 58 2d 41 6d 7a 2d 44 61 74 65 3d 32 30 32 32 31 31 30 38 54 32 32 32 38 32 37 5a 26 58 2d 41 6d 7a 2d 45 78 70 69 72 65 73 3d 33 36 30 30 26 58 2d 41 6d 7a 2d 53 65 63 75 72 69 74 79 2d 54 6f 6b 65 6e 3d 46 77 6f 47 5a 58 49 76 59 58 64 7a 45 47 67 61 44 48 31 33 31 45 66 63 4b 77 41 4c 68 79 6a 32 38 43 4c 55 41 63 6d 6d 4a 43 55 5a 68 4a 25 32 46 65 79 4e 78 7a 4e 6c 47 49 25 32 46 74 70 50 75 52 48 6f 44 57 6e 7a 61 4f 50 34 65 6e 44 45 52 47 39 4a 4f 32 25 32 42 74 39 34 50 30 66 67 25 32 42 7a 5a 37 6b 6c 53 4a 79 59 6d 4d 25 32 42 6e 54 53 31 5a 46 6b 68 48 69 73 53 50 30 38 25 32 42 63 34 57 4a 63 36 45 55 74 25 32 42 6a 6c 70 48 42 64 44 48 59 69 36 49 51 79 59 56 41 48 45 75 4d 4b 49 37 43 7a 73 69 4b 35 57 53 6e 53 64 43 54 46 70 34 49 25 32 46 6c 74 50 61 51 31 38 50 72 39 6c 4a 31 34 43 63 59 61 43 61 46 74 34 6e 64 45 65 61 7a 55 38 77 55 4f 73 63 70 42 44 51 38 4d 79 51 31 32 4b 50 4a 4b 70 44 4e 4d 6e 49 70 77 47 59 7a 66 34 65 67 6e 6d 63 32 32 58 31 45 32 58 55 54 7a 6c 6a 61 71 4d 37 77 76 25 32 46 57 77 37 4e 25 32 42 58 32 6e 46 6c 36 52 7a 4c 31 54 69 32 78 6b 41 69 57 59 43 4f 33 61 76 77 51 44 39 58 67 52 47 4c 6d 39 79 5a 59 46 31 31 4b 53 56 78 61 59 48 4e 4e 65 57 79 31 52 35 71 4b 4f 79 73 71 35 73 47 4d 69 33 37 6d 48 5a 49 65 4b 73 76 4a 62 5a 65 68 46 49 44 41 67 48 41 46 33 42 6a 32 25 32 42 39 25 32 46 74 4a 70 61 69 31 52 4a 65 5a 69 65 43 72 43 56 36 73 4f 77 47 4e 51 49 50 33 79 66 6f 35 67 25 33 44 26 58 2d 41 6d 7a 2d 53 69 67 6e 65 64 48 65 61 64 65 72 73 3d 63 6f 6e 74 65 6e 74 2d 74 79 70 65 25 33 42 68 6f 73 74 0a 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 0a 68 6f 73 74 3a 64 63 70 6c 61 74 66 6f 72 6d 73 74 6f 72 61 67 65 73 65 72 76 69 63 65 2d 70 72 6f 64 2d 75 73 2d 65 61 73 74 2d 31 2e 73 33 2d 61 63 63 65 6c 65 72 61 74 65 2e 61 6d 61 7a 6f 6e 61 77 73 2e 63 6f 6d 0a 0a 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3b 68 6f 73 74 0a 55 4e 53 49 47 4e 45 44 2d 50 41 59 4c 4f 41 44[/CanonicalRequestBytes][RequestId]DHBWWFR3HH09S3SF[/RequestId][HostId]nUYw2Iqv64bBmxH2IOZKlUcb/7I1ylbb6ikkAkdYmqns9yvP6RMMsktpPhoEOvbvjDFOq5Vrm6E=[/HostId][/Error]

 

TOPICS
AWS , Bug , PDF Services API , REST APIs

Views

1.7K

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
Community Beginner ,
Nov 14, 2022 Nov 14, 2022

Copy link to clipboard

Copied

Hi,

I can replicate the error if I change a character in the uploadUri or if I use another API request method. 

So make sure you're making a PUT request to the correct uploadUri.

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
Community Beginner ,
Nov 15, 2022 Nov 15, 2022

Copy link to clipboard

Copied

I'm running into the exact same problem. I just copy the URI from the POST asset API call, so I don't feel there's a mistake in the URL. @Developement27029123kd1u did you find the answer?

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
Adobe Employee ,
Nov 15, 2022 Nov 15, 2022

Copy link to clipboard

Copied

Can you share more of your code?

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
Community Beginner ,
Nov 17, 2022 Nov 17, 2022

Copy link to clipboard

Copied

  • -In Postman I create the asset through the /assets endpoint: https://pdf-services.adobe.io/assets
    Response is a uploadUri and assetID
    AssetsResponse.png

  • Then I do a PUT request to the uploadUri
    • Authentication by parameters set in the received uploadUri 

 

And then suddenly I saw my user mistake! In the PUT call the Content-Type didn't match with the content-type of the asset I created. Once I changed the content-type, the flow worked!

So my solution was to change the content-type in the PUT call to the Adobe storage service to match it to the content-type of the asset created in the /assets POST request.

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
Community Beginner ,
Jul 17, 2023 Jul 17, 2023

Copy link to clipboard

Copied

ah, thanks for this! This was my mistake as well.

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
New Here ,
Nov 16, 2022 Nov 16, 2022

Copy link to clipboard

Copied

Hi,

It may also be related to the content of the body (file to upload) itself.

With Postman, when I try importing a file in a binary body it will work but if I try to copy the content of a file in a form-data body it will give me the same error as you even though there's no change in the signature of the request.

 

I'm still trying to make it work...

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
New Here ,
Oct 15, 2023 Oct 15, 2023

Copy link to clipboard

Copied

Same issue here. I've gotten data corrupted errors when using axios, so tried to debug using postman. Tried getting auth tokens for both east and west with the same result:

Screen Shot 2023-10-15 at 1.22.53 PM.png

 

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
New Here ,
Oct 16, 2023 Oct 16, 2023

Copy link to clipboard

Copied

LATEST

Ah, mine was the content-type as well. It's auto generated.

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
Resources