SageMakerInferenceRouterRuntime / Client / exceptions / ModelError
ModelError¶
- class SageMakerInferenceRouterRuntime.Client.exceptions.ModelError¶
The model in the destination that served the request returned an error. Check
OriginalStatusCode,OriginalMessage, and the destination’s logs in Amazon CloudWatch.Example
try: ... except client.exceptions.ModelError as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'OriginalStatusCode': 123, 'OriginalMessage': 'string', 'LogStreamArn': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The model in the destination that served the request returned an error. Check
OriginalStatusCode,OriginalMessage, and the destination’s logs in Amazon CloudWatch.Message (string) –
A message that describes the error.
OriginalStatusCode (integer) –
The HTTP status code that the model container returned.
OriginalMessage (string) –
The error message that the model container returned.
LogStreamArn (string) –
The Amazon Resource Name (ARN) of the Amazon CloudWatch log stream for the destination that served the request.
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.