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

已提問 2 個月前檢視次數 114 次
1 個回答
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
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
  • 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 .

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南