PUT request : Signature Does Not Match

Options

Hi all !

I'm having an issue when creating a post request and i don't understand how to solve it....

I send a POST request to an api that return a presigned url that i use a PUT request to upload images to these presigned, but every time I try the service can't get my images because the content of the urls is empty. When I went to look at one of the generated urls I saw this message and I think it's related to my problem of uploading images to these urls: 

<Error>

<Code>SignatureDoesNotMatch</Code>

<Message>The signature does not match the signature you provided. Check your keys and the signature method.</Message>

<AWSAccessKeyId>5QPIZOJL3D1K59PRBJSY</AWSAccessKeyId>

<StringToSign>AWS4-HMAC-SHA256 20230104T110132Z 20230104/us-east-1/s3/aws4_request d3537f0c52b53d1659877317495cb54d3aabfc2b30ca5876b437cc6a252cfad2</StringToSign>

<SignatureProvided>bb9e5bda5d4940fb15ae3886e3ee5c6565ace22b73aecca3c1c570e045ff8b4b</SignatureProvided>


......

</Error>

Any Idea , how to solve this issue ?

Best Answer

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Answer ✓
    Options

    Hey @Mamad without knowing the full context here, it looks like you need to have a signature for AWS to properly call the API. It seems you have the wrong signature in here. You may need to reference their documentation to see what is required.

Answers