Faraday :: Error :: ConnectionFailed Omniauth Facebook [英] Faraday::Error::ConnectionFailed Omniauth Facebook

查看:148
本文介绍了Faraday :: Error :: ConnectionFailed Omniauth Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在rails中收到错误 - Faraday :: Error :: ConnectionFailed。我正在尝试 RailsCast Omniauth Episode 。 Twitter的工作正常。但是当我给

I am getting error in rails - Faraday::Error::ConnectionFailed. I am trying RailsCast Omniauth Episode. It's working fine with Twitter. But when I give

http://localhost:3000/auth/facebook

它给出错误。我也看到问题,但问题未解决。

it's giving error. I have also see question, but problem not solved.

developer.facebook.com上的设置

Settings on developer.facebook.com

Site URL: http://localhost:3000/
Site Domain: localhost

我正在使用Windows。我也阅读了问题

I am using windows. I have also read question.

谢谢!

推荐答案

我已经解决了这个问题。此问题可能仅适用于Windows用户。使用这个,

I have solved this problem. This problem might be for windows users only. Use this,

1 将此文件保存在桌面上 win_fetch_cacerts.rb

1 Save this file on your desktop win_fetch_cacerts.rb

2 在命令提示符下使用此命令

2 Use this command on command prompt

ruby "%USERPROFILE%\Desktop\win_fetch_cacerts.rb"

[3]保存此文件在你的c:\RailsInstaller\

[3] Save this file on your c:\RailsInstaller\

[4]在您的命令提示符下或设置为环境变量

[4] On your command prompt or set as environment variable

set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem

[5]重新启动系统并尝试。

[5] Restart your system and try.

这篇关于Faraday :: Error :: ConnectionFailed Omniauth Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆