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.
on 2012-12-06 10:47
on 2012-12-06 19:33
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.
on 2012-12-06 23:58
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.
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
on 2012-12-07 14:41
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
Log in with Google account | Log in with Yahoo account
No account? Register here.