Fix for Net::OpenTimeout: execution expired When on AWS with Rails and Sendgrid

15 sec read

If you happen to see the error “Net::OpenTimeout: execution expired” and if it originating from /home/ubuntu/.rvm/rubies/ruby-x.x.x/lib/ruby/x.x.x/net/smtp.rb and if you are running your server on AWS EC2 and if you SendGrid using port 587 for smtp mail, then go and enable the port 587 in your AWS Security group.
PS: Better test for other scenarios before opening up a port.

Related posts:

My Testing Experience with Healthcare Project

Hi Folks, I am working on a healthcare related web application. I would like to share few interesting things that I came across while...
Ashwin Sundarabaskar
5 min read

Speaking at Ruby meetups – a way of giving…

Speaking at meetups is a great way of giving back to the community and so we always encourage our mates at Spritle to be...
Spritle Bot
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *