RenewTokenErrorCode
Error codes after calling renewToken.
- Since
- Available since 4.6.0.
Enumerations
- renewTokenSuccess
- (0): Token updated successfully.
- renewTokenFailure
- (1): Token update failed due to an unknown server error. 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. Generate a new Token with a longer expiration time and retry renewToken.
- renewTokenInvalidToken
- (3): Token update failed because the provided Token is invalid. Common reasons include: the project has enabled App Certificate in the Agora Console but the Token was not used when joining the channel; the
uidspecified in joinChannel is different from the one used to generate the Token; the channel name specified in joinChannel is different from the one used to generate the Token. 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. 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. 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.