Help Center> Natural Language Processing> FAQs> Why Is an Error Message "Invalid token" Displayed When Text Translation Is Invoked?

Why Is an Error Message "Invalid token" Displayed When Text Translation Is Invoked?

Description

I obtained the token. However, an error message "Invalid token" was reported when I called the text translation API.

Solution

  1. Check whether the token expires.

    • If yes, update the token. The validity period of a token is 24 hours. Obtain the token and ensure that the token is within the validity period.
    • If no, go to 2.

  2. Check whether the account is in arrears.

    • If yes, top up the account.
    • If no, contact technical support.