no errors being reported

smeevil's Avatar

smeevil

19 Dec, 2008 05:27 PM via web

Hello there,

Somehow hoptoad never receives any errors, not even when running the 'rake hoptoad:test'. This does show no errors when running. example output :

rake hoptoad:test (in /snip/snip/my_project) Setting up the Controller. Processing request. Raising 'HoptoadTestingException' to simulate application failure.

I created several projects (4) and none of those receive any errors when i am sure there are some (intentionally created to test hoptoad)

2 Projects are in development, 2 are in production, however this does not make any difference.

Please let me know what i can do to analize this problem.

With kind regards, Gerard.

  1. 2 Posted by tammersaleh on 19 Dec, 2008 06:13 PM

    tammersaleh's Avatar

    Hi Gerard,

    The most common cause for this issue that we've seen has been not fully removing the old exception notifier from the application. Make sure that the exception notifier plugin is no longer installed, and that it's not being included into ApplicationController.

    Tammer

  2. 3 Posted by smeevil on 20 Dec, 2008 07:26 AM

    smeevil's Avatar

    Hi Tammer,

    I have read this in the FAQ and other documentations. I made sure that the old projects have no traces left of the plugin , but 2 of the projects are completely new and only have hoptoad as plugin.

    Good to know is that everything runs on rails 2.2.2

  3. 4 Posted by LocallyGrown.net on 20 Dec, 2008 04:38 PM

    LocallyGrown.net's Avatar

    I'm seeing the same thing. Rake task seems to run fine, but no errors are received.

    Mine is a 1.2.x app with no previous exception notification plugins.

    -eric

  4. 5 Posted by tammersaleh on 29 Dec, 2008 06:43 PM

    tammersaleh's Avatar

    Hi Gerard,

    Can you email your hoptoad configuration to us at hoptoad@thoughtbot.com (reference this url in the email). I'd like to verify that the config is correct (like the API key and such).

    Eric, can you also email us your configuration?

    Thanks, Tammer

  5. 6 Posted by LocallyGrown.net on 29 Dec, 2008 07:55 PM

    LocallyGrown.net's Avatar

    I found the solution, after digging through the closed tickets.

    http://thoughtbot.lighthouseapp.com/projects/14635/tickets/53-errors-are-not-showing-up-in-hoptoad#ticket-53-14

    In short, I needed to add the following to environment.rb:

     # Hoptoad: Go!
     Dir["#{RAILS_ROOT}/config/initializers/*.rb"].each{|r| require r}
    
  6. 7 Posted by smeevil on 30 Dec, 2008 09:38 AM

    smeevil's Avatar

    Hi Tammer,

    I've been checking all the projects thoroughly to make sure everything
    is allright. For example I'll take the HEC project which has :

    ./config/initializers/hoptoad.rb

    HoptoadNotifier.configure do |config| config.api_key = 'cc0d4dada3637a6156af494f03197587' end

    and at the top of the ./app/controllers/application.rb

    include HoptoadNotifier::Catcher

    class ApplicationController < ActionController::Base

    ...
    

    A rake hoptoad:test results in :

    Setting up the Controller. Processing request. Raising 'HoptoadTestingException' to simulate application failure.

    But still no errors are being reported.

    These are all new projects which never used ExceptionNotifier plugin. All of the projects are running on rails 2.2.2

    I'll keep the post updated if i can find anything.

    I just tested the script integration_test.rb and that does seem to work !

    ./integration_test.rb cc0d4dada3637a6156af494f03197587 Sending insecure notification to project with key cc0d4dada3637a6156af494f03197587 Hoptoad Success: Net::HTTPCreated

    This one also shows up in the errors on hoptoad.

    Just to make sure that config/initializers/hoptoad.rb is being loaded by the rake hoptoad:test i included some output in the config like : puts "reading hoptoad config !" HoptoadNotifier.configure do |config| puts "setting api key " config.api_key = 'cc0d4dada3637a6156af494f03197587' end

    this results in :

    rake hoptoad:test (in /Users/smeevil/rails/hec) reading hoptoad config ! setting api key Setting up the Controller. Processing request. Raising 'HoptoadTestingException' to simulate application failure.

    So this is not the problem.

    Alas i do not have the time to investigate any further without directions from you. Please let me know how to continue :)

    Gerard.

    On 29 dec 2008, at 19:43, Tender Support wrote:

  7. 8 Posted by taleksiejunas on 04 Jan, 2009 01:06 PM

    taleksiejunas's Avatar

    I have the same issue - no errors being reported. rake hoptoad:test

    Setting up the Controller. Processing request. Raising 'HoptoadTestingException' to simulate application failure.

    but nothing happens. Exception notifier is not installed.

  8. 9 Posted by smeevil on 07 Jan, 2009 11:30 AM

    smeevil's Avatar

    I would like some more active feedback on this issue. Let me know if i can run any more test to scope down the problem and get to a solution.

  9. 10 Posted by admin on 12 Jan, 2009 12:03 PM

    admin's Avatar

    +1 i've got the same issue

  10. 11 Posted by smeevil on 13 Jan, 2009 09:58 AM

    smeevil's Avatar

    Guys, your last reaction was December 30, in the meantime its Januari 13 and there has been no feedback what so ever. This is a payed service and thus i would expect a more professional support. At least let us know something , it is ok if you are really busy, or maybe taking a look into the problem , or anything but give us feedback. Also let us know if there is anything we can help out with.

  11. Support Staff 12 Posted by crowdtap on 13 Jan, 2009 05:38 PM

    crowdtap's Avatar

    We're really sorry about the delay, and we want to make sure your issue gets resolved as soon as possible. Can you give us a list of all the gems and plugins you have installed that are required in the app? Do you have "rescue_action" or "rescue_action_in_public" defined anywhere in your controllers? Or any other exception catching or handling methods at all?

  12. 13 Posted by tammersaleh on 13 Jan, 2009 05:45 PM

    tammersaleh's Avatar

    Hi Gerard,

    I also apologize about the delay. The holidays were pretty distracting for us :)

    The information jon asked for would be great. Alternatively, is there any way we can get access to the project code as a whole? I totally understand if there are IP concerns there.

    Cheers, Tammer

  13. 14 Posted by smeevil on 14 Jan, 2009 09:10 AM

    smeevil's Avatar

    Hi Staff,

    Thanks for the response :) I understand that it was busy the last few days, and no worries about that. As said, a bit of communication goes a long way !

    I made a fresh sample containing one action , and the hoptoad plugin. This gives the same results for me.

    you can clone it here : git clone git://github.com/smeevil/hoptoad_test.git

    Please let me know if i can be of further assistance :)

    Gerard

  14. 15 Posted by iou on 14 Jan, 2009 10:10 AM

    iou's Avatar

    Hello,

    I am having similar issue. I have tried to debug the cause from the console. msg = { :notice => "TEST" } notice = normalize_notice(msg) notice = clean_notice(notice) send_to_hoptoad msg

    What I'm getting is:

    Hoptoad Failure: Net::HTTPInternalServerError

    Any clues? Best, ++Robert

  15. 16 Posted by smeevil on 19 Jan, 2009 10:04 AM

    smeevil's Avatar

    Hi Robert,

    Same here. Still waiting for feedback ( again ) on the sample i provided, or just any info that its being looked at or such.

    Gerard

  16. 17 Posted by smeevil on 19 Jan, 2009 02:23 PM

    smeevil's Avatar

    Hi jyurek,

    I just got a notifcation warning in from : /Users/jyurek/Development I take it that you are busy with the sample i provided ?

    Nice to know your are investigating :)

    Gerard.

  17. Support Staff 18 Posted by crowdtap on 19 Jan, 2009 02:36 PM

    crowdtap's Avatar

    Gerard,

    I've found the problem in your codebase: The "include HoptoadNotifier::Catcher" line must be inside the ApplicationController class, not just in the application.rb file, like so:

    class ApplicationController < ActionController::Base
      include HoptoadNotifier::Catcher
    end
    

    As a result of not doing this, your ApplicationController wasn't actually including the notifier's functionality.

    We do check to see if HoptoadNotifier::Catcher is listed in the ancestors of the ApplicationController, and typically this works for catching errors of this kind. But because of where you put it, you actually included it in Object, which, while technically makes it an ancestor of ApplicationController (and so it bypassed the check we had in place), doesn't actually work (as you've seen).

    We'll be fixing the detection in the rake task and are discussing other steps so this does not happen again.

    Please make this change in your code and let us know if it works, thanks.

  18. 19 Posted by smeevil on 20 Jan, 2009 08:13 AM

    smeevil's Avatar

    Well seems indeed i took step 3 to literally :

    Include this code at the top of your ApplicationController:

    include HoptoadNotifier::Catcher

    Feel quite stupid that i overlooked it not being in the class definition.

    Everything seems to work now as it should.

    Thanks for the feedback ! I would suggest to change the screen of Setting up your Rails app so step 3 says

    Include this code at the top of your ApplicationController:

    class ApplicationController < ActionController::Base include HoptoadNotifier::Catcher ... end

    Cheers :)

  19. Support Staff 20 Posted by Joe Ferris on 24 Jun, 2009 08:41 PM

    Joe Ferris's Avatar

    We added further detection to make sure that the notifier is properly included. Please let us know if you have any further trouble with Hoptoad.

    -Joe

  20. Joe Ferris resolved this discussion on 24 Jun, 2009 08:41 PM.

Comments are currently closed for this discussion. You can start a new one.