My rails app (Rails 4.0, Ruby 2.0.) has a rake task that when run remotely on Heroku results in the error:
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: (null)
The offending code:
doc = Nokogiri::HTML(open(item.link))
I tried adding:
doc = Nokogiri::HTML(open(item.link, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE))
This doesn't cange anything. Any suggestions?