GithubHelp home page GithubHelp logo

Mailcatcher crashing about mailcatcher HOT 10 CLOSED

sj26 avatar sj26 commented on May 7, 2024
Mailcatcher crashing

from mailcatcher.

Comments (10)

sj26 avatar sj26 commented on May 7, 2024

This was fixed in an updated version of mailcatcher. Update and you should be fine.

from mailcatcher.

thomasfedb avatar thomasfedb commented on May 7, 2024

Thanks.

from mailcatcher.

stefanahman avatar stefanahman commented on May 7, 2024

Crashes for me as well using version 0.2.4

gems/eventmachine-1.0.4/lib/eventmachine.rb:1455:in `event_callback': undefined method `close' for 11:Fixnum (NoMethodError)

from mailcatcher.

sj26 avatar sj26 commented on May 7, 2024

@stefanahman that's a very old version of mailcatcher, please upgrade

from mailcatcher.

SachinRJadhav avatar SachinRJadhav commented on May 7, 2024
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080
Haml::TempleEngine: Option :outvar is invalid
/home/.rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.3/lib/eventmachine.rb:1489:in `event_callback': undefined method `close' for 18:Fixnum (NoMethodError)
Did you mean?  clone
	from /home/.rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.3/lib/eventmachine.rb:194:in `run_machine'
	from /home/.rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.3/lib/eventmachine.rb:194:in `run'
	from /home/.rvm/gems/ruby-2.3.0/gems/mailcatcher-0.2.4/lib/mail_catcher.rb:21:in `run'
	from /home/.rvm/gems/ruby-2.3.0/gems/mailcatcher-0.2.4/bin/mailcatcher:44:in `<top (required)>'
	from /home/.rvm/gems/ruby-2.3.0/bin/mailcatcher:23:in `load'
	from /home/.rvm/gems/ruby-2.3.0/bin/mailcatcher:23:in `<main>'
	from /home/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
	from /home/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'

from mailcatcher.

mcris-roberto avatar mcris-roberto commented on May 7, 2024

Hi,

I'm getting the same error when accessing the http://127.0.0.1:1080

bundle exec mailcatcher
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080
Haml::TempleEngine: Option :outvar is invalid
bundler: failed to load command: mailcatcher (/Users/username/.rbenv/versions/2.3.1/bin/mailcatcher)
NoMethodError: undefined method `close' for 14:Fixnum
Did you mean?  clone
  /Users/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/eventmachine-1.2.5/lib/eventmachine.rb:1489:in `event_callback'
  /Users/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/eventmachine-1.2.5/lib/eventmachine.rb:194:in `run_machine'
  /Users/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/eventmachine-1.2.5/lib/eventmachine.rb:194:in `run'
  /Users/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mailcatcher-0.2.4/lib/mail_catcher.rb:21:in `run'
  /Users/username/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mailcatcher-0.2.4/bin/mailcatcher:44:in `<top (required)>'
  /Users/username/.rbenv/versions/2.3.1/bin/mailcatcher:23:in `load'
  /Users/username/.rbenv/versions/2.3.1/bin/mailcatcher:23:in `<top (required)>'`

I am using mailcatcher-0.6.5

from mailcatcher.

mcris-roberto avatar mcris-roberto commented on May 7, 2024

I was able to fix this by not including mailcatcher in the gemfile as suggested in #290. I also used executed it using mailcather instead of bundle exec mailcatcher

from mailcatcher.

sj26 avatar sj26 commented on May 7, 2024

@mcris-roberto please do not put mailcatcher in your Gemfile. You are using mailcatcher 0.2.4, as stated in your backtrace, due to bundler's dependency resolution mechanisms falling back to an older version, and that version does not support eventmachine 1.2.5, which bundler has chosen to install. Instead, gem install mailcatcher and mailcatcher.

from mailcatcher.

sj26 avatar sj26 commented on May 7, 2024

@mcris-roberto Nice timing! πŸ˜‚

from mailcatcher.

sj26 avatar sj26 commented on May 7, 2024

@SachinRJadhav you're having the same issue β€”Β please use mailcatcher directly, not within a Gemfile.

I'm locking this issue. If you get the above error make sure you're not using mailcatcher in a Gemfile, and that you're using the latest version (gem update mailcatcher).

from mailcatcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.