RENEW_TOKEN_ERROR_CODE
Error codes after calling renewToken.
- Since
- Available since 4.6.0.
Enumerations
- RENEW_TOKEN_SUCCESS
- (0): Token updated successfully.
- RENEW_TOKEN_FAILURE
- (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. - RENEW_TOKEN_TOKEN_EXPIRED
- (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. - RENEW_TOKEN_INVALID_TOKEN
- (3): Token update failed because the provided Token is invalid. Common causes include: the project has enabled App Certificate in the Agora Console but Token is not used when joining the channel; the
uidspecified injoinChannelis inconsistent with the one used to generate the Token; the channel name specified injoinChannelis inconsistent with the one used to generate the Token. It is recommended to check the Token generation process, regenerate the Token, and retryrenewToken. - RENEW_TOKEN_INVALID_CHANNEL_NAME
- (4): Token update failed because the channel name in the Token is inconsistent with the current channel. It is recommended to 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 is inconsistent with the current App ID. It is recommended to 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 being initiated.