加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在Windows中设置Heroku

发布时间:2020-12-14 02:01:27 所属栏目:Windows 来源:网络整理
导读:我是Heroku的新手.我按照Heroku网站上的教程在 Windows中设置Heroku.我安装了Heroku Toolbelt.当我运行命令$heroku login,并输入电子邮件和密码时,我收到以下错误: Owner@OWNER-PC ~$heroku loginEnter your Heroku credentials.Email: qwePassword (typing
我是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

我键入的电子邮件地址无关紧要,错误仍然相同.

我试过搜索类似的问题,但似乎没有找到解决方案来解决我的问题.请帮帮我,非常感谢!!

解决方法

其他几个对此问题的引用:

> Heroku client internal error. Unable to verify certificate
> https://github.com/heroku/heroku/issues/245

其他人报告的一些解决方案有效:

> [sudo] gem install认证

添加到gemfile:gem’已认证’

捆绑安装
>尝试从https://github.com/stevegraham/certified将/ certs文件夹添加到/ lib目录
>尝试设置HEROKU_SSL_VERIFY以禁用$HEROKU_SSL_VERIFY =禁用heroku日志
>可能尝试卸载gem,而是从https://toolbelt.heroku.com下载/安装工具带

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读