CredentialBroker / Client / exceptions / ServiceUnavailableException
ServiceUnavailableException¶
- class CredentialBroker.Client.exceptions.ServiceUnavailableException¶
A downstream dependency the broker relies on is temporarily unavailable, notably the customer’s external IdP token/discovery endpoint (upstream 5xx,
server_error, ortemporarily_unavailable). Retryable: the same request may succeed later.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) –
A downstream dependency the broker relies on is temporarily unavailable, notably the customer’s external IdP token/discovery endpoint (upstream 5xx,
server_error, ortemporarily_unavailable). Retryable: the same request may succeed later.message (string) –
retryAfterSeconds (integer) –
The number of seconds to wait before retrying. If this field is absent, retry with exponential backoff.
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.