When obtaining a token, refer to the error message and select the appropriate solution.
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 use an IAM account to obtain the token, set the parameters as follows:
username: IAM username (subaccount name)
domainname: account name