简体   繁体   中英

Rails 5.1 and Geocoder: SSL_connect returned=1 errno=0 state=error: certificate verify failed

I'm using Geocoder to get coordinates for an adress:

location.rb

geocoded_by :address      
after_validation :geocode

It doesn't save because of the OpsenSSL Error

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate
verify failed):

I use Nominatim as API. Did I miss something?

Update

That is an excerpt of the output of bundle install

Using geocoder 1.5.0

Bundle complete! 22 Gemfile dependencies, 82 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

问题通过解决

gem update --system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM