密码更改后,Heroku CLI中的验证失败 [英] Authentication failure in Heroku CLI after password change

查看:174
本文介绍了密码更改后,Heroku CLI中的验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我做 heroku登录在heroku网站上更改密码后,我无法访问heroku api。 $ c>,我得到认证成功,即使它不应该是因为密码已经改变。它甚至不要求我的电子邮件或密码,就像它应该!



如果我尝试 heroku apps (或任何其他应用程序相关的命令),我得到认证失败



如果我尝试 heroku status ,它可以工作。



我没有安装任何插件。

日志:

  $ heroku版本
heroku-gem / 3.6.0(i686-linux)ruby / 2.1.0
$ heroku注销
清除本地凭据。
$ heroku登录
认证成功。
$ heroku应用程序
身份验证失败
$ heroku插件
您没有安装插件。

我会很感激任何帮助或想法。我已经打开一张票,等待Heroku支持回到我身边。



谢谢

解决方案

显然,更改heroku密码会重新生成一个新的API密钥,并且我配置了 HEROKU_API_KEY 错误。 (密码更改后重新生成一个新密码)。



我在这里发布Heroku支持团队的回复,这给了我以下建议:




  • 计算机上是否存在〜/ .netrc 文件?如果有,可以请检查文件是否包含与Heroku相关的东西?请删除它,然后再次尝试登录。

  • 您的计算机上是否定义了 HEROKU_API_KEY 环境变量?如果是,您可以删除它并登录再试一次?

  • 是否有〜/ .heroku / credentials 文件(带或不带一个扩展名)在你的机器上?如果是,你可以删除它并再次尝试登录吗?
  • 最后,如果没有这些工作,可以尝试以下命令: GEM_HOME =''BUNDLE_GEMFILE =' 'GEM_PATH =''RUBYOPT =''heroku login 并查看它是怎么回事?


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 though it shouldn't because the password has changed. It doesn't even ask for my email or password, like it should!

If I try heroku apps (or any other application related command), I get Authentication failure.

If I try heroku status, it works.

I don't have any plugins installed.

Logs:

$ heroku version
heroku-gem/3.6.0 (i686-linux) ruby/2.1.0
$ heroku logout
Local credentials cleared.
$ heroku login
Authentication successful.
$ heroku apps
Authentication failure
$ heroku plugins
You have no installed plugins.

I'll appreciate any help or ideas I can get. I already opened a ticket and waiting for the Heroku Support to get back to me.

Thanks

解决方案

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?

这篇关于密码更改后,Heroku CLI中的验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆