SignInService / Client / exceptions / TooManyRequestsError

TooManyRequestsError

class SignInService.Client.exceptions.TooManyRequestsError

Error thrown when rate limit is exceeded

HTTP Status Code: 429 Too Many Requests

Possible OAuth2ErrorCode values:

  • INVALID_REQUEST: Rate limiting, too many requests, abuse prevention

Possible causes:

  • Too many token requests from the same client

  • Rate limiting based on client_id or IP address

  • Abuse prevention mechanisms triggered

  • Service protection against excessive token generation

Example

try:
  ...
except client.exceptions.TooManyRequestsError 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 rate limit is exceeded

    HTTP Status Code: 429 Too Many Requests

    Possible OAuth2ErrorCode values:

    • INVALID_REQUEST: Rate limiting, too many requests, abuse prevention

    Possible causes:

    • Too many token requests from the same client

    • Rate limiting based on client_id or IP address

    • Abuse prevention mechanisms triggered

    • Service protection against excessive token generation

    • error (string) –

      OAuth 2.0 error code indicating the specific type of error Will be INVALID_REQUEST for rate limiting scenarios

    • message (string) –

      Detailed message about the rate limiting May include retry-after information or rate limit details

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