Skip to content

SignatureRateLimitError

Thrown when a user hits the Sign API limit

Thrown when a user hits the Sign API limit

class SignatureRateLimitError(SignAPIError)
SignatureRateLimitError(api_message: Optional[str], *args, response: httpx.Response)

Constructor for signature rate limit

  • api_message (Optional[str]) — The message provided by the API
  • *args — Default RuntimeException *args
  • response (httpx.Response)
  • retry_after (property, int) — How long to wait until the next attempt
  • reset_time (property, int) — The unix timestamp for when the client can request again

Calculate the retry after time from the response headers

@classmethod
def calculate_retry_after(response: httpx.Response) -> int
  • response (httpx.Response) — The response object

int — The retry after time in seconds

from TikTokLive.client.errors import SignatureRateLimitError

TikTokLive/client/errors.py:175