Faraday::Error::ConnectionFailed Omniauth Facebook

旧街凉风 提交于 2019-12-22 23:13:30

问题


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.

Settings on developer.facebook.com

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

I am using windows. I have also read question.

Thanks!


回答1:


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

1 Save this file on your desktop win_fetch_cacerts.rb

2 Use this command on command prompt

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

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

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

set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem

[5] Restart your system and try.



来源:https://stackoverflow.com/questions/11028216/faradayerrorconnectionfailed-omniauth-facebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!