vajapravin
vajapravin

Reputation: 1383

Faraday::Error::ConnectionFailed Omniauth Facebook

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!

Upvotes: 2

Views: 3192

Answers (1)

vajapravin
vajapravin

Reputation: 1383

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.

Upvotes: 1

Related Questions