#104 ✓resolved
Ben Langfeld

XMPP (Blather) exceptions are eaten

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

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

Comments and changes to this ticket

  • Ben Langfeld

    Ben Langfeld July 28th, 2010 @ 09:43 AM

    [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

  • Ben Langfeld

    Ben Langfeld July 28th, 2010 @ 09:47 AM

    [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

  • Ben Langfeld

    Ben Langfeld July 28th, 2010 @ 10:38 AM

    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

  • Ben Klang

    Ben Klang July 28th, 2010 @ 10:41 PM

    • Tag set to lost exceptions
  • Ben Klang

    Ben Klang July 29th, 2010 @ 11:22 AM

    • State changed from “new” to “open”
  • Ben Langfeld

    Ben Langfeld September 21st, 2011 @ 04:06 PM

    • State changed from “open” to “hold”
  • Ben Langfeld

    Ben Langfeld September 21st, 2011 @ 04:12 PM

    • State changed from “hold” to “resolved”

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages