I am trying to access a token, but having trouble.

Error message

{"error":"invalid_grant","error_description":"Authentication failed."}

If I use --data-urlencode, I get an unsupported_grant_type error.


Resolution

You must use a SystemWeaver username and password to be able to get a token.