我是Heroku新手。 我遵循Heroku网站上的教程在Windows中设置Heroku。 我安装了Heroku Toolbelt。 当我运行命令$ heroku login
,并input电子邮件和密码,我得到以下错误:
Owner@OWNER-PC ~ $ heroku login Enter your Heroku credentials. Email: qwe 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: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, or `Excon.defaults[:ssl_verify_peer] = false` (less secure). (Excon::Errors::SocketError) Backtrace: C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/ssl_socket.rb:55:in `connect' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/ssl_socket.rb:55:in `initialize' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/connection.rb:367:in `new' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/connection.rb:367:in `socket' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/connection.rb:105:in `request_call' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/middlewares/mock.rb:42:in `request_call' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/middlewares/instrumentor.rb:22:in `request_call' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/middlewares/base.rb:15:in `request_call' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/middlewares/base.rb:15:in `request_call' C:/Users/Owner/.heroku/client/vendor/gems/excon-0.22.1/lib/excon/connection.rb:246:in `request' C:/Users/Owner/.heroku/client/vendor/gems/heroku-api-0.3.11/lib/heroku/api.rb:76:in `request' C:/Users/Owner/.heroku/client/vendor/gems/heroku-api-0.3.11/lib/heroku/api/login.rb:9:in `post_login' C:/Users/Owner/.heroku/client/lib/heroku/auth.rb:80:in `api_key' C:/Users/Owner/.heroku/client/lib/heroku/auth.rb:189:in `ask_for_credentials' C:/Users/Owner/.heroku/client/lib/heroku/auth.rb:221:in `ask_for_and_save_credentials' C:/Users/Owner/.heroku/client/lib/heroku/auth.rb:84:in `get_credentials' C:/Users/Owner/.heroku/client/lib/heroku/auth.rb:41:in `login' C:/Users/Owner/.heroku/client/lib/heroku/command/auth.rb:31:in `login' C:/Users/Owner/.heroku/client/lib/heroku/command.rb:206:in `run' C:/Users/Owner/.heroku/client/lib/heroku/cli.rb:28:in `start' c:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>' Command: heroku login Version: heroku/toolbelt/2.39.4 (i386-mingw32) ruby/1.9.3
不pipe我input什么邮件地址,错误仍然是一样的。
我试图寻找类似的问题,但似乎没有find解决scheme来解决我的问题。 请帮助我,非常感谢你!
对这个问题的其他几个引用:
其他人报告已经工作的一些解决方案:
[sudo] gem install certified
添加到gemfile: gem 'certified'
bundle install
尝试从https://github.com/stevegraham/certified添加/ certs文件夹到您的/ lib目录
尝试设置HEROKU_SSL_VERIFY以禁用$ HEROKU_SSL_VERIFY=disable
heroku日志
可能尝试卸载宝石,而不是从https://toolbelt.heroku.com下载/安装工具栏
我有这个问题,没有任何建议为我工作。
事实证明,当试图解决一个不同的问题,我设置了一个环境变量来设置我的SSL证书位置在RailsInstaller目录。
如果没有上述答案对您有帮助,我建议您检查是否有任何可疑的环境变量。
我也有这个问题。 以下为我工作:
heroku login
来重新建立登录 它听起来很简单,它解决了我的证书问题:)