SignInService / Client / exceptions / InternalServerException

InternalServerException

class SignInService.Client.exceptions.InternalServerException

Error thrown when an internal server error occurs

HTTP Status Code: 500 Internal Server Error

Used for unexpected server-side errors that prevent request processing.

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',
    'message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Error thrown when an internal server error occurs

    HTTP Status Code: 500 Internal Server Error

    Used for unexpected server-side errors that prevent request processing.

    • error (string) –

      OAuth 2.0 error code indicating server error Will be SERVER_ERROR for internal server errors

    • message (string) –

      Detailed message explaining the server error May include error details for debugging purposes

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