【发布时间】:2016-11-15 22:10:42
【问题描述】:
在我的模型中输入坐标时,我试图获取地址。
def full_address
Geocoder.address("#{self.latlon.x}, #{self.latlon.y}")
end
但是,有时它可以正常工作,然后有时我会收到此错误。我已经到处寻找解决方案,但没有一个适用于我。
warning: constant Geokit::Geocoders::Geocoder::TimeoutError is deprecated
E, [2016-11-15T17:06:32.828481 #7406] ERROR -- : Caught an error during Google geocoding call: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
E, [2016-11-15T17:06:32.828665 #7406] ERROR -- : /Users/Brandon/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock'
【问题讨论】:
标签: ruby-on-rails ruby google-maps geocode geokit