SageMakerGatewayRuntime / Client / exceptions / ResourceNotFoundException
ResourceNotFoundException¶
- class SageMakerGatewayRuntime.Client.exceptions.ResourceNotFoundException¶
No gateway with this ID exists in this account and Region, or no target of the gateway serves the model named in the request body. A model that is served but has no available target right now returns ServiceUnavailableException instead. A message starting
inference gatewaymeans the inference gateway serving the model returned a 404; up to 256 bytes of its error message are quoted.Example
try: ... except client.exceptions.ResourceNotFoundException 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', 'ResourceId': 'string', 'ResourceType': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
No gateway with this ID exists in this account and Region, or no target of the gateway serves the model named in the request body. A model that is served but has no available target right now returns ServiceUnavailableException instead. A message starting
inference gatewaymeans the inference gateway serving the model returned a 404; up to 256 bytes of its error message are quoted.Message (string) –
A description of the error. It starts with a prefix such as
Global Inference Gateway:orinference gateway:that says where the error came from.ResourceId (string) –
The ID of the resource that was not found: the gateway ID, or the model name.
ResourceType (string) –
The kind of resource that was not found: the gateway, or the model.
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.