Closed varunmodani closed 4 years ago
I reran the code, and there does not appear to be a bug or something that changed in SageMaker. AWS usually, the most tricky part is setting up the IAM. I am not a SageMaker expert by any means, but to know anything I would need to see the CloudWatch logs. Setup your IAM so that the endpoint has access to produce those.
Hi!
While calling the model endpoint,I'm encountering the error mentioned below.I'm using keras/tensorflow model.I have used a custom code to train and deploy the model.I tried to use the cloudwatch link provided in the error but couldn't trace the error.
Any help will be appreciated.
Code
data = train_df.iloc[0,:186].values.tolist()
response = client.invoke_endpoint(EndpointName=endpoint_name, Body=json.dumps(data))
response_body = response['Body']
print(response_body.read())
Error
ModelError Traceback (most recent call last)