Help Center/ Optical Character Recognition/ FAQs/ Token-based Authentication/ Why Does the Token Fail to Be Obtained When I Use Postman to Call an ORC API?
Updated on 2023-10-26 GMT+08:00

Why Does the Token Fail to Be Obtained When I Use Postman to Call an ORC API?

Select a solution based on the error message.

  • Check whether the service region in the body and the corresponding key value are correct.
  • Error message "The username or password is wrong." is displayed.
  • If error message "The userInfo is wrong" is displayed, do the following:

    Set username and domainname correctly. Typically, the value of username is the same as that of domainname. If you are not sure about the value, log in to the My Credentials page. If you log in as an IAM user, set the parameters as follows:

    usernameIAM username (subaccount name)

    domainname: account name

  • If error code "APIGW.0101" is displayed, do the following:

    Check whether the URL used to obtain the token is correct. For example, if you use a POST request to obtain the token in the AP-Bangkok region, the URL is as follows:

    POST https://iam.ap-southeast-2.myhuaweicloud.com/v3/auth/tokens