我是Heroku的新手。我按照Heroku网站上的教程在Windows中设置Heroku。我安装了Heroku Toolbelt。当我运行命令$ heroku login
,并输入电子邮件和密码时,我收到以下错误:
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
输入的电子邮件地址并不重要,错误仍然相同。
我已经尝试过搜索类似的问题,但似乎找不到解决方案来解决我的问题。请帮帮我,非常感谢!!
答案 0 :(得分:5)
对此问题的其他几个引用:
其他人报告的一些解决方案有效:
[sudo] gem install certified
添加到gemfile:gem 'certified'
bundle install
尝试将/ certs文件夹从https://github.com/stevegraham/certified
尝试设置HEROKU_SSL_VERIFY以禁用$ HEROKU_SSL_VERIFY=disable
heroku日志
可能尝试卸载gem,而是从https://toolbelt.heroku.com下载/安装工具带
答案 1 :(得分:2)
我遇到了同样的问题,没有一个建议对我有用。
当试图解决另一个问题时,我设置了一个环境变量来将我的SSL证书位置设置在RailsInstaller目录中。
如果上述答案都没有帮助您,我建议检查是否有可疑的环境变量。
答案 2 :(得分:0)
我也有这个问题。以下对我有用:
heroku login
重新建立登录听起来很简单,它解决了我的证书问题:)