Forum: Ruby how to reproduce error System error (Failure) Imap

Posted by Lucky Nl (lucky1234)
on 2012-12-06 10:47
Hi friends,
Am using Imap in ruby 1.8.7
I got error ERROR  (12791)  System error (Failure) in my code.
But not sure when this will be happen.
Can anyone suggest when this error will be raise and how to reproduce
this error.
Posted by Jason Dunn (Guest)
on 2012-12-06 15:57
(Received via mailing list)
unsubscribe
Posted by Sergey Zhikharev (Guest)
on 2012-12-06 19:33
(Received via mailing list)
unsubscribe





From: Jason Dunn [mailto:attnjd@gmail.com]
Sent: Thursday, December 06, 2012 4:58 PM
To: ruby-talk ML
Subject: Re: how to reproduce error System error (Failure) Imap



unsubscribe

On Dec 6, 2012 3:47 AM, "Lucky Nl" <lists@ruby-forum.com> wrote:

Hi friends,
Am using Imap in ruby 1.8.7
I got error ERROR  (12791)  System error (Failure) in my code.
But not sure when this will be happen.
Can anyone suggest when this error will be raise and how to reproduce
this error.
Posted by Ryan Davis (Guest)
on 2012-12-06 23:58
(Received via mailing list)
On Dec 6, 2012, at 01:47 , Lucky Nl <lists@ruby-forum.com> wrote:

> Am using Imap in ruby 1.8.7
> I got error ERROR  (12791)  System error (Failure) in my code.
> But not sure when this will be happen.
> Can anyone suggest when this error will be raise and how to reproduce
> this error.

If you look through the code of net/imap.rb you'll see that there is no 
occurrence of "ERROR" anywhere. Nor in digest nor ssl. You'll need to 
look at your backtrace and actually debug where this is coming from.
Posted by Lucky Nl (lucky1234)
on 2012-12-07 06:35
Ryan Davis wrote in post #1088127:
> On Dec 6, 2012, at 01:47 , Lucky Nl <lists@ruby-forum.com> wrote:
>
>> Am using Imap in ruby 1.8.7
>> I got error ERROR  (12791)  System error (Failure) in my code.
>> But not sure when this will be happen.
>> Can anyone suggest when this error will be raise and how to reproduce
>> this error.
>
> If you look through the code of net/imap.rb you'll see that there is no
> occurrence of "ERROR" anywhere. Nor in digest nor ssl. You'll need to
> look at your backtrace and actually debug where this is coming from.

This issue raised at line in my code  imap.examine("[Gmail]/Sent Mail") 
in production.
But when i have tried same code ,not get error
I have use rescue Exception => e
But this hadn't come to this block
Posted by tamouse mailing lists (Guest)
on 2012-12-07 14:41
(Received via mailing list)
On Thu, Dec 6, 2012 at 11:35 PM, Lucky Nl <lists@ruby-forum.com> wrote:
>> occurrence of "ERROR" anywhere. Nor in digest nor ssl. You'll need to
>> look at your backtrace and actually debug where this is coming from.
>
> This issue raised at line in my code  imap.examine("[Gmail]/Sent Mail")
> I have use rescue Exception => e
> But this hadn't come to this block
>
> --
> Posted via http://www.ruby-forum.com/.
>

Really hard to debug code without seeing it, but...

Generally when these things happen, it's because of passing in bad
references and so on. Make sure you are checking all error returns and
trapping the exceptions you can.

Break down the code to small enough components you can test each one
by itself (and test first, early and often!).

Are you stuck using 1.8.7? 1.9.x are *so* much better.

You can help us help you tremendously by showing us the real code and
the backtrace listings.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.