Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

XMPP (Blather) exceptions are eaten

#104

Anything in a blather callback which throws an exception (such as incorrect syntax) causes a reconnect attempt and silences the stack trace.

Reported by Ben Langfeld · July 28th, 2010 @ 09:42 AM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Ben Langfeld
    Ben Langfeld

    [13:30] benlangfeld: bklang: Any ideas what I need to do to get better XMPP errors? If the EventMachine breaks down, it goes for a reconnect but doesn't spew the Blather stack trace - not brilliant for debugging. [13:32] bklang: well I've noticed that Adhearsion tends to eat exceptions coming from certain parts of the code (ie. the dialplan.rb). What I usually do is put my own exception handler in there and "puts e.backtrace" [13:32] bklang: that's one of the things I want to address too, it does make debugging much harder [13:32] bklang: there's actually an open ticket on Lighthouse about exceptions getting lost

    July 28th, 2010 @ 09:43 AM

  2. Ben Langfeld
    Ben Langfeld

    [13:30] benlangfeld: bklang: Any ideas what I need to do to get better XMPP errors? If the EventMachine breaks down, it goes for a reconnect but doesn't spew the Blather stack trace - not brilliant for debugging.

    [13:32] bklang: well I've noticed that Adhearsion tends to eat exceptions coming from certain parts of the code (ie. the dialplan.rb). What I usually do is put my own exception handler in there and "puts e.backtrace"

    [13:32] bklang: that's one of the things I want to address too, it does make debugging much harder

    [13:32] bklang: there's actually an open ticket on Lighthouse about exceptions getting lost

    July 28th, 2010 @ 09:47 AM

  3. Ben Langfeld
    Ben Langfeld

    Ok, so a quick and dirty bodge would be to override this method and modify the block to handle the exception - except this code doesn't exactly work:

    http://gist.github.com/494693

    July 28th, 2010 @ 10:38 AM

  4. Ben Klang
    Ben Klang
    • Tag set to lost exceptions

    July 28th, 2010 @ 10:41 PM

  5. Ben Klang
    Ben Klang
    • State changed from new to open

    July 29th, 2010 @ 11:22 AM

  6. Ben Langfeld
    Ben Langfeld
    • State changed from open to hold

    September 21st, 2011 @ 04:06 PM

  7. Ben Langfeld
    Ben Langfeld
    • State changed from hold to resolved

    September 21st, 2011 @ 04:12 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.