Getting error "The request signature we calculated does not match the signature you provided" when calling Invoke Model API

0

Hi I am working on Mendix application. there I am trying to call Invoke Model API and getting {"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."}. Also tried for with "Converse" api , i got same error. But at the same time its works for Retrieve API. Here i am giving some screenshots Retrieve Enter image description here Enter image description here Enter image description here Enter image description here

Invoke Enter image description here Enter image description here Enter image description here

asked 2 months ago106 views
1 Answer
0

Hi,

If you access Bedrock via AWS-supplied SDK in your favorite language, it will take care of the SigV4 signature of each of your request for you, provided that you supply the right credentials.

If you try to access Bedrock directly by yourself over REST, you'll have to sign your request based on the SigV4 requirements. See https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html

Creating the signature yourself requires some effort, so, using an SDK is much simpler.

Best,

Didier

profile pictureAWS
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
  • Yes, my issue is , As I shared in screenshots, its working when I call Retrieve API and not working for Invoke model , converse. I already spent few hours to explore documentation, forums . but not getting a solution . so finally i posted here .

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions