`event_callback`: undefined method `close' for 9:Fixnum (NoMethodError)
neezer opened this issue · 5 comments
neezer commented
Here's what I'm doing:
- Start mailcatcher on the command line via
mailcatcher
- Visit
http://localhost:1080
- Page loads, but server crashes with this error:
redtail git:master ❯ mailcatcher ⏎
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080
/Users/evan/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:1441:in `event_callback': undefined method `close' for 9:Fixnum (NoMethodError)
from /Users/evan/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine'
from /Users/evan/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run'
from /Users/evan/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/mailcatcher-0.2.4/lib/mail_catcher.rb:21:in `run'
from /Users/evan/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/mailcatcher-0.2.4/bin/mailcatcher:44:in `<top (required)>'
from /Users/evan/.rbenv/versions/1.9.3-p194-perf/bin/mailcatcher:23:in `load'
from /Users/evan/.rbenv/versions/1.9.3-p194-perf/bin/mailcatcher:23:in `<main>'
What gives?
neezer commented
Nevermind, just realized that gem install mailcatcher
decided to install 0.2.4
instead of 0.5.10
. Upgraded and I don't have an issue anymore. Weird.
sj26 commented
This is a bug introduced by the latest version of eventmachine, and was fixed in the latest version of mailcatcher. :-)
neezer commented
Awesome, thanks!
santosham commented
plz same error need ful help to me
sj26 commented
... fixed in the latest version of mailcatcher.
Please upgrade mailcatcher if you're seeing this error:
gem install mailcatcher