Omniauth Facebook Error - Faraday::Error::ConnectionFailed

后端 未结 9 1756
滥情空心
滥情空心 2020-11-28 20:31

(FYI: I\'m following the Twitter Omniauth from railscast #241. I used Twitter successfully, now going onto Facebook)

As soon as I logged into Facebook using Omniauth

相关标签:
9条回答
  • 2020-11-28 20:49

    Andrei's answer worked for me, however I ran into a huge roadblock when trying to reinstall Ruby 1.9.3. Because I had installed a new version of Xcode since installing 1.9.3 I was unable to reinstall until I opened the Xcode Preferences and installed the Command Line Tools from the Downloads tab.

    0 讨论(0)
  • 2020-11-28 20:50

    Andrei's answer didn't work for me on Mac OSX 10.8.3. I had reinstalled openssl to install ruby 2.0 some time ago and since then always got this error. I fixed it thanks to Andrei's answer and instructions from the Rails project.

    I ran:

    $ rvm -v
    $ rvm get head
    # Installation of latest version of rvm...
    $ rvm -v
    # rvm 1.19.5 (master)
    $ rvm osx-ssl-certs status all
    # Certificates for /usr/local/etc/openssl/cert.pem: Old.
    # Certificates for /Users/mpapis/.sm/pkg/versions/openssl/0.9.8x/ssl/cert.pem: Old.
    $ sudo rvm osx-ssl-certs update all
    # Updating certificates...
    

    Then I checked if the certificates were correctly updated by running rvm osx-ssl-certs status all again but /usr/local/etc/openssl/cert.pem was still not updated. I don't know if that was necessary but I did the following:

    $ cd /usr/local/etc/openssl/
    $ curl -O http://curl.haxx.se/ca/cacert.pem
    $ mv cacert.pem cert.pem
    

    After that the problem was fixed. Hope that helps someone else who runs into the same issue.

    0 讨论(0)
  • 2020-11-28 20:58

    I've fixed this on Mac OS X Lion 10.7.4 with this solution:

    $ rvm remove 1.9.3 (or whatever version of ruby you are using)
    $ rvm pkg install openssl
    $ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
    

    after this you will need to download the missing cacert.pem file:

    $ cd $rvm_path/usr/ssl
    $ sudo curl -O http://curl.haxx.se/ca/cacert.pem
    $ sudo mv cacert.pem cert.pem
    
    0 讨论(0)
  • 2020-11-28 21:07

    For Windows 7: the above solution link of Neil Hoff (Fix for Windows: https://gist.github.com/867550) did not work for me.

    Here is what works:

    Using cmd.exe:

    curl -o c:\cacert.pem http://curl.haxx.se/ca/cacert.pem
    set SSL_CERT_FILE=c:\cacert.pem
    

    using msysgit bash:

    curl -o /c/cacert.pem http://curl.haxx.se/ca/cacert.pem
    export SSL_CERT_FILE=/c/cacert.pem
    

    If you do not have curl on your windows 7 command line get it here: http://www.confusedbycode.com/curl/#downloads

    original solution is from here - credit to: https://github.com/chef/chef-dk/issues/106

    Dunn.

    0 讨论(0)
  • 2020-11-28 21:08

    The RVM website suggests running rvm osx-ssl-certs update all

    RVM Website: How to fix broken certificates in your operating system.

    0 讨论(0)
  • 2020-11-28 21:11

    Alternative Solution:

    [I am Win7 user with manual install the Ruby and Ruby on Rails]

    I have the same problem but cannot resolve by the answer that given by this question. By the way, finally, I got problem solved by following url

    Facebook Redirect url in ruby on rails open ssl error https://github.com/technoweenie/faraday/wiki/Setting-up-SSL-certificates

    0 讨论(0)
提交回复
热议问题