SignInService / Client / exceptions / InternalServerException

InternalServerException

class SignInService.Client.exceptions.InternalServerException

The request failed because of an internal server error.

Example

try:
  ...
except client.exceptions.InternalServerException 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

{
    'error': 'TOKEN_EXPIRED'|'USER_CREDENTIALS_CHANGED'|'INSUFFICIENT_PERMISSIONS'|'AUTHCODE_EXPIRED'|'server_error'|'INVALID_REQUEST'|'RESOURCE_NOT_FOUND'|'CONFLICT'|'SERVICE_QUOTA_EXCEEDED'|'unsupported_grant_type'|'invalid_request'|'invalid_grant'|'invalid_scope'|'invalid_target'|'rate_exceeded'|'service_unavailable',
    'message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request failed because of an internal server error.

    • error (string) –

      Will be server_error.

    • message (string) –

      The server error detail.

    • 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.