Comments (4)
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.
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.
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.
It works, but you're right, it actually was a network issue elsewhere. Thanks
from omnicontacts.
Related Issues (20)
- Omniauth + Omnicontacts
- omnicontacts errors with rack 2 (after upgrading to rails 5) HOT 4
- Fetch contacts with pagination HOT 1
- Is Hotmail still a separate service? HOT 2
- Yahoo OAuth 2 HOT 5
- An active access token must be used to query information about the current user - Facebook HOT 5
- Rack version is detected wrong HOT 3
- How to resolve 'Internal error' error message? HOT 2
- Please update the rubygems.org version to the latest version. HOT 2
- An active access token must be used to query information about the current user when trying to import contacts from facebook HOT 2
- logger is not working
- LinkedIn connector HOT 1
- Internal Error on Yahoo OAuth HOT 2
- is this gem still active?
- Outlook is returning only few contacts
- Config to use state parameter while requesting from gmail HOT 1
- undefined method include? for NilClass HOT 1
- Cannot import contacts from yahoo. HOT 4
- Yahoo OAuth connection error HOT 3
- Contacts API is being deprecated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omnicontacts.