You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.2.1 :001 > require 'google_maps_service'
=> true
2.2.1 :002 > gmaps = GoogleMapsService::Client.new(key: 'Removed_my_key')
=> #<GoogleMapsService::Client:0x007fc3f21ddf68 @key="Removed_my_key", @client_id=nil, @client_secret=nil, @retry_timeout=nil, @queries_per_second=nil, @request_options=nil, @ssl_options=nil, @connection=nil>
2.2.1 :003 > gmaps.geocode('10 Downing St, London SW1A 2AA, United Kingdom')
Hurley::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `connect'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:74:in `timeout'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `connect'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:852:in `start'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:1375:in `request'
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:1133:in `get'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/connection.rb:80:in `perform_request'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/connection.rb:15:in `block (2 levels) in call'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/client.rb:252:in `initialize'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/connection.rb:14:in `new'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/connection.rb:14:in `block in call'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/connection.rb:58:in `net_http_connection'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/connection.rb:12:in `call'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/client.rb:122:in `call_with_redirects'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/client.rb:89:in `call'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/hurley-0.2/lib/hurley/client.rb:47:in `get'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/google_maps_service-0.4.1/lib/google_maps_service/client.rb:177:in `block in get'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/retriable-2.1.0/lib/retriable.rb:54:in `block in retriable'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/retriable-2.1.0/lib/retriable.rb:48:in `times'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/retriable-2.1.0/lib/retriable.rb:48:in `retriable'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/google_maps_service-0.4.1/lib/google_maps_service/client.rb:174:in `get'
from /Users/salinsm/.rvm/gems/ruby-2.2.1@gmaps_sb/gems/google_maps_service-0.4.1/lib/google_maps_service/apis/geocoding.rb:50:in `geocode'
from (irb):3
from /Users/salinsm/.rvm/rubies/ruby-2.2.1/bin/irb:11:in `<main>'2.2.1 :004 >
2.2.1 :005 > exit
The text was updated successfully, but these errors were encountered:
It works on me without any SSL problem. I think Hurley can't load your trusted certificate in your default path. Last time, I also got this kind of error for another project. I just installed the certificate into the default path and no more SSL error.
You can follow this post. Or, you can also install the certificate by running:
The text was updated successfully, but these errors were encountered: