使用 Devise 注册时,我的生产服务器出现异常。之前一切正常,没有任何代码更改。服务器在 Heroku 上。 这是异常(exception):
"exception":["Faraday::SSLError","SSL_
connect returned=1 errno=0 state=SSLv3/TLS write client hello: wrong version number"],"exception_object":"SSL_connect returned=1 errno=0 state=SSLv3/TLS write client hello: wrong version number"
看来法拉第使用的版本不匹配了。
什么可能导致此更改以及如何解决它?
最佳答案
错误来自elasticsearch。
我联系了 Bonsai Elasticsearch,他们给了我解决方案:
We believe that a recent change to the elasticsearch-ruby client is causing the client to attempt to communicate on port 9200 rather than the HTTPS default of 443. As a workaround, you could update your BONSAI_URL config variable to explicitly specify :443, eg, https://key:secret@cluster-123.region.bonsaisearch.net:443/
关于ruby-on-rails - Ruby on Rails - Faraday SSLError 版本号错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56305349/