[Facebooker-talk] conflict with Get Exceptional and Facebooker in ActionController::Base#rescue_action

Mike Mondragon mikemondragon at gmail.com
Tue Dec 2 04:36:40 EST 2008


I'm running a Rails 2.0.5 app, it serves normal content and Facebook
content with Facebooker.  I've been having a problem with Facebooker
conflicting with the Get Exceptional exception tracker
(http://github.com/contrast/exceptional/tree/master).  When an
exception is raised it makes a JSON package of the exception trace and
request environment to post back to their server. However when it does
this via ActionController::Base#rescue_action this exception thrown
when a TCPSocket object has to_json called upon it.
"Error sending exception data: can't convert Symbol into String"
When we use the older email based Exception Notifier its resue_action
is subverted by Facebooker as well.  If the app is loaded without
Facebooker both exception handlers operate as expected.

I'd be grateful if anyone has some clues to give me about where I
might a way to get everyone play together nicely.

I've tried duck punching ActiveSupport::JSON.encode
(activesupport/lib/active_support/json/encoding.rb) to handle
exception nicely without success so far.

Thanks!

Mike


More information about the Facebooker-talk mailing list