Unable to use heroku gem cli after password changes

后端 未结 6 1864
攒了一身酷
攒了一身酷 2021-02-04 02:37

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-p

6条回答
  •  被撕碎了的回忆
    2021-02-04 03:28

    I had the same issue on Windows Vista.

    I got authorization failed messages on every heroku command and wasn’t able to login.

    c:\Sites\jut>heroku login
     !    Heroku client internal error.
     !    Search for help at: https://help.heroku.com
     !    Or report a bug at: https://github.com/heroku/heroku/issues/new
    
        Error:       Permission denied - C:/Users/myusername/_netrc (Errno::EACCES)
        Backtrace:   C:/Program Files/Heroku/vendor/gems/netrc-0.7.7/lib/netrc.rb:179:in `initialize'
                     C:/Program Files/Heroku/vendor/gems/netrc-0.7.7/lib/netrc.rb:179:in `open'
                     C:/Program Files/Heroku/vendor/gems/netrc-0.7.7/lib/netrc.rb:179:in `save'
                     C:/Program Files/Heroku/lib/heroku/auth.rb:94:in `delete_credentials'
                     C:/Program Files/Heroku/lib/heroku/auth.rb:40:in `login'
                     C:/Program Files/Heroku/lib/heroku/command/auth.rb:31:in `login'
                     C:/Program Files/Heroku/lib/heroku/command.rb:206:in `run'
                     C:/Program Files/Heroku/lib/heroku/cli.rb:28:in `start'
                     C:/Program Files/Heroku/bin/heroku:24:in `
    ' Command: heroku login Version: heroku/toolbelt/2.33.2 (i386-mingw32) ruby/1.9.2

    I deleted C:/Users/myusername/_netrc where the passwords are stored.

    After that I was able to heroku login again and all went fine!

提交回复
热议问题