SageMakerRuntime / Client / exceptions / ModelStreamError
ModelStreamError#
- class SageMakerRuntime.Client.exceptions.ModelStreamError#
An error occurred while streaming the response body. This error can have the following error codes:
ModelInvocationTimeExceeded
The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker.
StreamBroken
The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.
Example
try: ... except client.exceptions.ModelStreamError as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'ErrorCode': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
An error occurred while streaming the response body. This error can have the following error codes:
ModelInvocationTimeExceeded
The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker.
StreamBroken
The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.
Message (string) –
ErrorCode (string) –
This error can have the following error codes:
ModelInvocationTimeExceeded
The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker.
StreamBroken
The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.
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.