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

demandé il y a 2 mois122 vues
1 réponse
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
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • 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 .

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions