2

我正在运行“heroku login”命令,作为响应,我收到以下错误:

Error:       A blocking operation is currently executing. - connect(2) would block (Excon::Errors::SocketError)
Backtrace:   C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/socket.rb:48:in `connect_nonblock'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/socket.rb:48:in `rescue in block in connect'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/socket.rb:31:in `block in connect'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/socket.rb:29:in `each'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/socket.rb:29:in `connect'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/socket.rb:16:in `initialize'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/ssl_socket.rb:31:in `initialize'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/connection.rb:344:in `new'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/connection.rb:344:in `socket'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/connection.rb:175:in `request_kernel'
             C:/Program Files (x86)/Heroku/vendor/gems/excon-0.14.2/lib/excon/connection.rb:101:in `request'
             C:/Program Files (x86)/Heroku/vendor/gems/heroku-api-0.2.6/lib/heroku/api.rb:60:in `request'
             C:/Program Files (x86)/Heroku/vendor/gems/heroku-api-0.2.6/lib/heroku/api/login.rb:9:in `post_login'
             C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:75:in `api_key'
             C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:184:in `ask_for_credentials'
             C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:216:in `ask_for_and_save_credentials'
             C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:79:in `get_credentials'
             C:/Program Files (x86)/Heroku/lib/heroku/auth.rb:40:in `login'
             C:/Program Files (x86)/Heroku/lib/heroku/command/auth.rb:22:in `login'
             C:/Program Files (x86)/Heroku/lib/heroku/command.rb:178:in `run'
             C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:19:in `start'
             C:/Program Files (x86)/Heroku/bin/heroku:25:in `<main>'

Command:     heroku login
Version:     heroku-toolbelt/2.28.7 (i386-mingw32) ruby/1.9.2

知道有什么问题吗?

谢谢!

4

2 回答 2

2

In my case this was happening due to company proxy. From another network everything worked as advertised.

于 2012-08-09T10:20:28.523 回答
0

如果您在登录时遇到问题,请尝试移动您的 .netrc 文件。这是 CLI 存储凭据的位置:

$ mv ~/.netrc ~/.netrc.backup

$ heroku 登录

在 Windows 上,该文件名为 _netrc。

在此页面上查找更多信息: https ://devcenter.heroku.com/articles/heroku-cli#troubleshooting

于 2020-06-11T08:59:37.203 回答