Mike Mondragon
2008-Dec-02 09:36 UTC
[Facebooker-talk] conflict with Get Exceptional and Facebooker in ActionController::Base#rescue_action
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
Mike Mangino
2008-Dec-02 13:34 UTC
[Facebooker-talk] conflict with Get Exceptional and Facebooker in ActionController::Base#rescue_action
That'' really interesting. We''ve never seen problems with the old Exception notifier. There was a bug in exception notifier that caused that error, but it was an easy fix IIRC. We''re currently using Hoptoad (http://www.hoptoadapp.com) with great luck. Mike On Dec 2, 2008, at 4:36 AM, Mike Mondragon wrote:> 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 > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Mike Mondragon
2008-Dec-02 19:00 UTC
[Facebooker-talk] conflict with Get Exceptional and Facebooker in ActionController::Base#rescue_action
Upgrading to the latest Exception Notifier worked for us, thanks for the tip. I''ll have to look at their bug fix and see if I can apply it to Get Exceptional''s plugin. Thanks Mike On Tue, Dec 2, 2008 at 5:34 AM, Mike Mangino <mmangino at elevatedrails.com> wrote:> That'' really interesting. We''ve never seen problems with the old Exception > notifier. There was a bug in exception notifier that caused that error, but > it was an easy fix IIRC. We''re currently using Hoptoad > (http://www.hoptoadapp.com) with great luck. > > Mike > > On Dec 2, 2008, at 4:36 AM, Mike Mondragon wrote: > >> 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 >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > >