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 causes include: App certificate is enabled in the Agora Console but Token is not used when joining the channel; the
uidspecified 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. 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 is canceled due to a new request being initiated.