If using 2FA for the user you are entering in the config a token is not returned and the variables are not set properly to authenticate with the API.