HashNuke / mailgun

mailgun library for ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rescuing OpenSSL Errors

reubenbrown opened this issue · comments

An email hit an OpenSSL error that mailgun couldn't rescue because the OpenSSL::SSL::SSLError class doesn't have an http_code method.

2018-01-25T18:30:59.158Z 21699 WARN: NoMethodError: undefined method `http_code' for #<OpenSSL::SSL::SSLError:0x000000082bb2d8>
2018-01-25T18:30:59.158Z 21699 WARN: /usr/local/rvm/gems/ruby-2.4.0/gems/mailgun-0.11/lib/mailgun/base.rb:95:in `rescue in submit'

Following this article I was able to diagnose why I was getting an OpenSSL::SSL::SSLError and ultimately resolve the issue.