The code below yields the following error: OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A
require \'net/https
Solution is to upgrade to openssl 1.0.2g-1ubuntu4.6 (from 1.0.1f-1ubuntu2.21) (e.g. from cedar-14 to heroku-16 stack).
1.0.2g-1ubuntu4.6
1.0.1f-1ubuntu2.21
cedar-14
heroku-16
heroku stack:set heroku-16 -a your-app
And in app.json:
app.json
{ ... "stack": "heroku-16", ... }