Skip to content

SignAPIError

Thrown when a fetch to the Sign API fails for one reason or another

Thrown when a fetch to the Sign API fails for one reason or another

class SignAPIError(TikTokLiveError)
SignAPIError(reason: ErrorReason, *args: str, response: Optional[httpx.Response] = None)

Initialize a sign API Error class

  • reason (ErrorReason) — The reason for the error
  • *args (str) — Additional error arguments passed to the super-class
  • response (Optional[httpx.Response], default None)
  • reason
  • response (property, httpx.Response | None) — The response object from the Sign API
  • log_id (property, str | None) — The log ID from the response
  • agent_id (property, str | None) — The agent ID from the response

Format the sign server message

@classmethod
def format_sign_server_message(message: str) -> str
  • message (str)

str

from TikTokLive.client.errors import SignAPIError

TikTokLive/client/errors.py:84