Unable to use heroku gem cli after password changes

command-line-interface, heroku

Solution

I had this same problem after changing the password, and I found it was because I was managing multiple accounts with the heroku-accounts gem.

I removed the account setup in heroku-accounts and then re-added it, using the new credentials to authenticate. Things then started working as before.

It seems that the authentication details stored in the heroku-accounts gem somehow override those you apply via the command line. Anyway, this worked for me.

Problem

I changed my password via the web interface. And now I can't run any command that requires authentication. Password is using plain ASCII, nothing fancy, no Unicode, weird non-printable characters, etc. Anyone had similar experience and how you manage to resolve. How do I even begin to go about debug this? Any verbose cli option, log I can review? ``` % sw_vers ProductName: Mac OS X ProductVersion: 10.6.8 BuildVersion: 10K549 % rvm --version rvm 1.10.3 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/ % ruby --version ruby 1.9.3p125 (2012-02-16) [x86_64-darwin10.8.0] % gem --version 1.8.17 % heroku version 2.25.0 % cat ~/.netrc # is empty % heroku auth:login Enter your Heroku credentials. Email: me@example.com Password (typing will be hidden): Authentication failed. ```

Original source