By using AWS re:Post, you agree to the Terms of Use



Hi everybody

I have a deployed endpoint for a Sagemaker MultiDataModel. I can call it succesfully from my local computer using boto3.
I've set up an API Gateway to this Sagemaker MultiDataModel and I am trying to retrieve predictions from the model using a https request. But I keep getting a TARGET_MODEL_HEADER_MISSING-error.

My https request looks like this:
headers = {
response = requests.request("POST"
, ""
, headers = headers
, data = data

According to the documentation here:
and the source code here:
it seems like I am providing the header with the target model correctly. But this is obvously not the case.

How am I supposed to provide the target model in the header with the https-request?

Best regards

asked a year ago23 views
1 Answer

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