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

gefragt vor 2 Monaten112 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • 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 .

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen