BedrockAgentCore / Client / exceptions / ServiceUnavailableException
ServiceUnavailableException¶
- class BedrockAgentCore.Client.exceptions.ServiceUnavailableException¶
The service can’t handle the request right now. Retry the request. If the response includes
retryAfterSeconds, wait that many seconds before you retry.Example
try: ... except client.exceptions.ServiceUnavailableException 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', 'retryAfterSeconds': 123, 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The service can’t handle the request right now. Retry the request. If the response includes
retryAfterSeconds, wait that many seconds before you retry.message (string) –
A message that describes the error.
retryAfterSeconds (integer) –
The number of seconds to wait before you retry 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.