无法再登录heroku了

时间:2015-12-30 17:53:34

标签: node.js heroku heroku-toolbelt

我不确定究竟发生了什么。我不得不切换帐户,因此登出一个帐户登录另一个帐户 -

heroku auth:login

这些是我的终端命令 -

hello@world:~/$ heroku auth:login
Error reading plugin: heroku-git. See /home/helloworld/.heroku/error.log for more information.
Enter your Heroku credentials.
Email: zzzzzzz@gmail.com
Password (typing will be hidden): 
 ▸    Post https://api.heroku.com/oauth/authorizations: dial tcp: lookup api.heroku.com on 127.0.1.1:53: cannot unmarshal DNS message

以下是 error.log 文件的内容 -

2015/12/30 20:31:06 Email: 
2015/12/30 20:31:38 [31m ▸    [39mPost https://api.heroku.com/oauth/authorizations: dial tcp: lookup api.heroku.com on 127.0.1.1:53: cannot unmarshal DNS message
2015/12/30 20:31:43 Error reading plugin: heroku-git. See /home/bozzmob/.heroku/error.log for more information.
2015/12/30 20:31:43 exit status 1 
 /home/bozzmob/.heroku/node_modules/heroku-git/node_modules/heroku-cli-util/lib/styled.js:39
      return Object.keys(obj).map(k => k + ': ' + util.inspect(obj[k])).join('
                                    ^^
SyntaxError: Unexpected token =>
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Object.Module._extensions..js (module.js:448:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/bozzmob/.heroku/node_modules/heroku-git/node_modules/heroku-cli-util/index.js:5:15)
    at Module._compile (module.js:430:26)
    at Object.Module._extensions..js (module.js:448:10)

2015/12/30 20:31:43 Email: 
2015/12/30 20:32:04 [31m ▸    [39mPost https://api.heroku.com/oauth/authorizations: dial tcp: lookup api.heroku.com on 127.0.1.1:53: cannot unmarshal DNS message

请告诉我出了什么问题以及我该如何解决。

我还提到了heroku forums"Similar Stackoverflow question"。两者都没有解决方案。

1 个答案:

答案 0 :(得分:0)

我通过卸载当前的Heroku Toolbelt并重新安装它解决了这个问题。

首先卸载 -

sudo apt-get --purge remove heroku-toolbelt

然后,安装 -

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh