RenewTokenErrorCode

Error codes after calling renewToken.

Since
Available since v4.6.0.

Enumerations

RenewTokenSuccess
(0): Token updated successfully.
RenewTokenFailure
(1): Token update failed due to an unknown server error. It is recommended to check the parameters used to generate the Token, regenerate the Token, and retry renewToken.
RenewTokenTokenExpired
(2): Token update failed because the provided Token has expired. It is recommended to generate a new Token with a longer expiration time and retry renewToken.
RenewTokenInvalidToken
(3): Token update failed because the provided Token is invalid. Common causes include: the project has enabled App Certificate in the Agora Console but did not use a Token when joining the channel; the uid specified in joinChannel does not match the one used to generate the Token; the channel name specified in joinChannel does not match the one used to generate the Token. It is recommended to check the Token generation process, regenerate the Token, and retry renewToken.
RenewTokenInvalidChannelName
(4): Token update failed because the channel name in the Token does not match the current channel. It is recommended to check the channel name, regenerate the Token, and retry renewToken.
RenewTokenInconsistentAppid
(5): Token update failed because the App ID in the Token does not match the current App ID. It is recommended to check the App ID, regenerate the Token, and retry renewToken.
RenewTokenCanceledByNewRequest
(6): The previous Token update request was canceled due to a new request being initiated.