Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net::ReadTimeout: Net::ReadTimeout #191

Closed
hoang1417 opened this issue Jan 16, 2015 · 10 comments
Closed

Net::ReadTimeout: Net::ReadTimeout #191

hoang1417 opened this issue Jan 16, 2015 · 10 comments

Comments

@hoang1417
Copy link

I'm using ruby 2.0.0p353 and Rails 4.1.5 with mailcatcher 0.5.12.

The error _Net::ReadTimeout: Net::ReadTimeout_ appears every time I send an email.

My config about mailer in config/environments/development.rb:

  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.default_url_options = { host: 'localhost:3000' }
  config.action_mailer.perform_deliveries = true

  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }

Full error messages:

Net::ReadTimeout: Net::ReadTimeout
from /.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/protocol.rb:158:in `rescue in rbuf_fill'

Can anyone help figure out the reason?
Many thanks.

@danlo
Copy link

danlo commented Jan 16, 2015

#182 ?

@hoang1417
Copy link
Author

👍 @danlo. Yes, it is. I thought the issue was different, thanks!

@hoang1417
Copy link
Author

For who having same issue: both 2 below solutions work:

Run in the foreground

mailcatcher -f -v

or make sure you're using eventmachine version 1.0.3

gem uninstall eventmachine -v 1.0.4
gem install eventmachine -v 1.0.3

@esbanarango
Copy link

👍

@fluke
Copy link

fluke commented Jan 22, 2015

Can we have this fixed by setting the dependency on the right version of eventmachine. @sj26

@sj26
Copy link
Owner

sj26 commented Jan 29, 2015

Please try mailcatcher 0.6.0pre1 (gem install mailcatcher --pre)

@davity
Copy link

davity commented Jan 29, 2015

mailcatcher 0.6.0pre1 working fine

@sj26
Copy link
Owner

sj26 commented Feb 3, 2015

mailcatcher 0.6.1 is out which works with eventmachine up to 1.0.5, and restricts future upgrades.

@hoang1417
Copy link
Author

Yes, mailcatcher (0.6.1) works with eventmachine (1.0.5). Thanks @sj26 👍

@rolandoalvarado
Copy link

rolandoalvarado commented Apr 19, 2019

Thanks @hoang1417 running in foreground solves my issue.

mailcatcher 0.5.12
ruby 2.6.2
rails 5.1.7
eventmachine 1.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants