AWS Sign V4 calculation error

When I use Yaak to POST a request to AWS Beckrock Claude model with a modelId “

us.anthropic.claude-haiku-4-5-20251001-v1:0“, it gives a error “

"message": "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.\n\nThe Canonical String for this request should have been\n'POST\n/model/us.anthropic.claude-haiku-4-5-20251001-v1%3A0/invoke\n\ncontent-type:application/json\nhost:bedrock-runtime.us-east-2.amazonaws.com\nx-amz-content-sha256:UNSIGNED-PAYLOAD\nx-amz-date:20251127T164007Z\n\ncontent-type;host;x-amz-content-sha256;x-amz-date\nc738119b0763a280b66595797a8841a150de06c92412d06c18c5b56c1d29d6b8'\n\nThe String-to-Sign should have been\n'AWS4-HMAC-SHA256\n20251127T164007Z\n20251127/us-east-2/bedrock/aws4_request\n86c91c01e62ae09c21c13a4b64cb26c640133f1514a43202345c27815f2e1056'\n"

Seems the colon in the modelId was not correctly encoded.

Please authenticate to join the conversation.

Upvoters
Status

In Progress

Board

Feedback

Date

7 months ago

Author

jiejiecn

Subscribe to post

Get notified by email when there are changes.