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

feita há 2 meses105 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
  • 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 .

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas