Thrown when a fetch to the Sign API fails for one reason or another
Signature
Section titled “Signature”class SignAPIError(TikTokLiveError)
SignAPIError(reason: ErrorReason, *args: str, response: Optional[httpx.Response] = None)Initialize a sign API Error class
Parameters
Section titled “Parameters”reason(ErrorReason) — The reason for the error*args(str) — Additional error arguments passed to the super-classresponse(Optional[httpx.Response], defaultNone)
Attributes
Section titled “Attributes”reasonresponse(property,httpx.Response | None) — The response object from the Sign APIlog_id(property,str | None) — The log ID from the responseagent_id(property,str | None) — The agent ID from the response
Methods
Section titled “Methods”format_sign_server_message
Section titled “format_sign_server_message”Format the sign server message
@classmethoddef format_sign_server_message(message: str) -> strParameters
Section titled “Parameters”message(str)
Returns
Section titled “Returns”str
Import
Section titled “Import”from TikTokLive.client.errors import SignAPIError