Authentication failure in Heroku CLI after password change

后端 未结 6 490
耶瑟儿~
耶瑟儿~ 2020-12-28 09:31

After a password change on heroku\'s website, I can\'t access the heroku api.

When I do heroku login, I get Authentication successful, even tho

6条回答
  •  天命终不由人
    2020-12-28 09:51

    Apparently, changing the password for heroku regenerates a new API key, and I had the wrong HEROKU_API_KEY configured. (It regenerates a new one after password change).

    I'm posting here the response from the great Heroku's support team, which gave me these suggestions:

    • Is there a ~/.netrc file on your computer? If there is, can you please check if the file contains something Heroku related things? Please remove if there is, and try login again.
    • Is there an HEROKU_API_KEY environment variable defined on your machine? If yes, could you remove it and login try again?
    • Is there a ~/.heroku/credentials file (with or without an extension) on your machine? If yes, could you remove it and try login again?
    • Finally, if none of those work, could try the following command: GEM_HOME='' BUNDLE_GEMFILE='' GEM_PATH='' RUBYOPT='' heroku login and see how it goes?

提交回复
热议问题