2

我是 Ruby on Rails、Git 和 Heroku 的初学者。我正在关注公司代理背后的 Rails 教程。到目前为止,我能够安装 RailsInstaller,它帮助我相当顺利地设置了 Ruby、Rails 和 Git(还有 GitHub)。但我真的被困在部分(http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:1.4.1),我试图将我的公钥链接到我的新 Heroku 帐户将存储库推送到 Heroku。

我在公司代理后面的 Windows 7 机器上。我已经设置了 HTTP_PROXY env 变量,它正在为我推送到 GitHub 工作。我无法克服以下错误。似乎并没有到抱怨 ssh 公钥和这里关于 heroku 密钥的其他帖子的地步:添加错误有不同的输出。我还没有在 help.heroku.com 找到相关信息。任何见解将不胜感激!

c:\Sites\testproj\thirdapp>heroku keys:add
 Enter your Heroku credentials.
 Email: my.email@gmail.com
 Password (typing will be hidden):
 !    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:     A non-blocking socket operation could not be completed immediately. (Excon::Errors::SocketError)
Backtrace: C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:53:in `sysread'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:53:in `sysread'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:53:in `fill_rbuff'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:293:in `eof?'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl/buffering.rb:246:in `readline'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/ssl_socket.rb:68:in `initialize'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:330:in `new'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:330:in `socket'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:175:in `request_kernel'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/excon-0.14.0/lib/excon/connection.rb:101:in `request'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api-0.2.5/lib/heroku/api.rb:60:in `request'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-api-0.2.5/lib/heroku/api/login.rb:9:in `post_login'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:74:in `api_key'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:183:in `ask_for_credentials'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:214:in `ask_for_and_save_credentials'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/auth.rb:78:in `get_credentials'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/command/keys.rb:66:in `add'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/command.rb:176:in `run'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/lib/heroku/cli.rb:10:in `start'
           C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.27.1/bin/heroku:16:in `<top (required)>'
           C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `load'
           C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `<main>'

Command:   heroku keys:add
Version:   heroku-gem/2.27.1 (i386-mingw32) ruby/1.9.3
4

2 回答 2

1

我也遇到同样的错误。我卸载它并从Toolbelt安装最新版本的 Heroku并得到解决....

于 2013-08-22T06:51:55.653 回答
0

类似的问题已在: https ://github.com/heroku/heroku/issues/441

调用“heroku 键:添加”时,我也遇到了同样的错误。不幸的是,在代理后面工作时仍然没有找到任何解决方法。

根据问题,该命令在不在代理后面时有效。

于 2012-07-31T09:01:09.220 回答