RENEW_TOKEN_ERROR_CODE

Error codes after calling renewToken.

Since
Added since version 4.6.0.

Enumerations

RENEW_TOKEN_SUCCESS
(0): Token updated successfully.
RENEW_TOKEN_FAILURE
(1): Token update failed due to unknown server error. Check the parameters used to generate the token, regenerate it, and retry renewToken.
RENEW_TOKEN_TOKEN_EXPIRED
(2): Token update failed because the provided token has expired. Generate a new token with a longer expiration time and retry renewToken.
RENEW_TOKEN_INVALID_TOKEN
(3): Token update failed because the provided token is invalid. Common causes include: App certificate is enabled in Agora Console but token is not used when joining the channel; uid in joinChannel is different from the one used to generate the token; channel name in joinChannel is different from the one used to generate the token. Check the token generation process, regenerate the token, and retry renewToken.
RENEW_TOKEN_INVALID_CHANNEL_NAME
(4): Token update failed because the channel name in the token does not match the current channel. Check the channel name, regenerate the token, and retry renewToken.
RENEW_TOKEN_INCONSISTENT_APPID
(5): Token update failed because the App ID in the token does not match the current App ID. Check the App ID, regenerate the token, and retry renewToken.
RENEW_TOKEN_CANCELED_BY_NEW_REQUEST
(6): The previous token update request was canceled due to a new request.