Rails 5.1 and Geocoder: SSL_connect returned=1 errno=0 state=error: certificate verify failed
Rails 5.1 and Geocoder: SSL_connect returned=1 errno=0 state=error: certificate verify failed
我正在使用 Geocoder 获取地址的坐标:
location.rb
geocoded_by :address
after_validation :geocode
由于 OpsenSSL 错误,它没有保存
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate
verify failed):
我使用 Nominatim 作为 API。我错过了什么吗?
更新
这是 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
我正在使用 Geocoder 获取地址的坐标:
location.rb
geocoded_by :address
after_validation :geocode
由于 OpsenSSL 错误,它没有保存
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate
verify failed):
我使用 Nominatim 作为 API。我错过了什么吗?
更新
这是 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