Coder Social home page Coder Social logo

Comments (4)

Diego81 avatar Diego81 commented on August 18, 2024

It looks very strange. The path "/contacts/gmail" should be accessed through a GET and not a POST.
How does you initializer file looks like? Can you provide more info from the logs?

from omnicontacts.

cumpais avatar cumpais commented on August 18, 2024

Worth to mention that this codes runs perfectly on a Windows 7 machine. I get this error on a Windows XP.

Here's my omnicontacts file

    require "omnicontacts"
    Rails.application.middleware.use OmniContacts::Builder do
      importer :gmail, "my code", "my secret", {:redirect_path => "/contacts/gmail/callback", :ssl_ca_file => Rails.root.join('lib/assets/curl-ca-bundle.crt').to_s}
    importer :yahoo, "consumer_id", "consumer_secret", {:callback_path => '/callback'}
    importer :hotmail, "client_id", "client_secret"
    end

Here's the latest lines of the log file

Started GET "/contacts/gmail" for 127.0.0.1 at 2012-03-29 09:51:52 +0200
Started GET "/contacts/gmail/callback?code=4/eJApRp0xUjyLIhH0i0cr-HyuiRxn" for 127.0.0.1 at 2012-03-29 09:52:08 +0200
SocketError (getaddrinfo: H�te inconnu. ):
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `initialize'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `open'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:762:in `connect'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:744:in `start'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:1284:in `request'
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/http.rb:1239:in `request_post'
  omnicontacts (0.1.2) lib/omnicontacts/http_utils.rb:61:in `block in https_post'
  omnicontacts (0.1.2) lib/omnicontacts/http_utils.rb:82:in `https_connection'
  omnicontacts (0.1.2) lib/omnicontacts/http_utils.rb:60:in `https_post'
  omnicontacts (0.1.2) lib/omnicontacts/authorization/oauth2.rb:43:in `fetch_access_token'

from omnicontacts.

Diego81 avatar Diego81 commented on August 18, 2024

It seems there is something wrong with your network configuration.
Try to run a simple script that downloads a web page and see if that works.
Something like this:

require 'net/http'

Net::HTTP.new("www.google.com").request_get("/search?q=something")

If this doesn't work, it is not something related to OmniContacts.

from omnicontacts.

cumpais avatar cumpais commented on August 18, 2024

It works, but you're right, it actually was a network issue elsewhere. Thanks

from omnicontacts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.