Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

Undefined method 'Success?' for "200 dummy reply code" intermittently #9

Open
wooki opened this issue Nov 8, 2010 · 2 comments
Open

Comments

@wooki
Copy link

wooki commented Nov 8, 2010

No idea why this happens and I can't find anything online except a reference to it in a closed lighthouse account.

<Net::SMTP::Response:0xc34ed40 @string="250 2.0.0 oA55T56M020010 Message accepted for delivery\n", @status="250">

action_mailer/ar_sendmail.rb:379:in deliver' /opt/ruby-enterprise/lib/ruby/1.8/net/smtp.rb:526:instart'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:374:in deliver' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:462:inrun'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:458:in loop' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:458:inrun'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:296:in run' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/bin/ar_sendmail:5 /opt/ruby-enterprise/bin/ar_sendmail:19:inload'
/opt/ruby-enterprise/bin/ar_sendmail:19
Unhandled exception undefined method success?' for "200 dummy reply code":String(NoMethodError): /opt/ruby-enterprise/lib/ruby/1.8/net/smtp.rb:929:incheck_response'
/opt/ruby-enterprise/lib/ruby/1.8/net/smtp.rb:899:in getok' /opt/ruby-enterprise/lib/ruby/1.8/net/smtp.rb:899:ingetok'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:16:in reset' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:396:indeliver'
/opt/ruby-enterprise/lib/ruby/1.8/net/smtp.rb:526:in start' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:374:indeliver'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:462:in run' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:458:inloop'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:458:in run' /home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/lib/action_mailer/ar_sendmail.rb:296:inrun'
/home/mtmadmin/.gem/ruby/1.8/gems/adzap-ar_mailer-2.1.8/bin/ar_sendmail:5
/opt/ruby-enterprise/bin/ar_sendmail:19:in `load'
/opt/ruby-enterprise/bin/ar_sendmail:19

@daviscabral
Copy link

Are you using a Google Account? It seems something related. A kind of spam protection. It is happening with me too.

@veselov
Copy link

veselov commented Nov 19, 2013

The problem is with the 'net/smtp' Ruby module, it has a bug on processing certain error responses. You should find out what the actual message is coming from the SMTP server on the other end. Edit the smtp.rb, find the line:

return '200 dummy reply code' if @error_occurred

and replace it with

return Response.parse('200 dummy reply code') if @error_occurred

Then you'll have better idea as to what is actually going on.

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

No branches or pull requests

3 participants