![](/img/trans.png)
[英]Rails 3: OpenSSL::SSL::SSLError: hostname was not match with the server certificate
[英]OpenSSL::SSL::SSLError: hostname “freegeoip.io” does not match the server certificate in ruby geocoder gem
我與此寶石一起使用gem 'geocoder'
問題
我的Gemfile.lock
geocoder (1.4.4)
出現以下錯誤:
Completed 500 Internal Server Error in 485ms (ActiveRecord: 0.0ms)
OpenSSL::SSL::SSLError (hostname "freegeoip.io" does not match the server certificate):
Freegeoip將服務器從http://freegeoip.io移到了http://freegeoip.net ...
將gem更新為gem geocoder '~> 1.4.5
為我修復了此問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.