Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ script/generate hoptoad --api-key 9<snip>4
/<snip>/vendor/gems/thoughtbot-paperclip-2.3.1/lib/paperclip.rb:47: warning: already initialized constant VERSION
** Erubis 2.6.5
exists lib/tasks
create lib/tasks/hoptoad_notifier_tasks.rake
insert
Dir[File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
$: << File.join(vendored_notifier, 'lib')
end
require 'hoptoad_notifier/capistrano'
appended to config/deploy.rb
create config/initializers/hoptoad.rb
rake rake hoptoad:test
(in /<snip>)
** Erubis 2.6.5
** Erubis 2.6.5
** [Hoptoad] Notifier 2.2.0 ready to catch errors
New Relic Agent not running
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
User Columns (1.7ms) SHOW FIELDS FROM `users`
Configuration:
environment_name: "development"
notifier_url: "http://hoptoadapp.com"
http_read_timeout: 5
api_key: "9<snip>4"
development_environments: []
proxy_pass: nil
notifier_version: "2.2.0"
ignore: ["ActiveRecord::RecordNotFound", "ActionController::Rou
proxy_port: nil
framework: "Rails: 2.3.5"
params_filters: ["password", "password_confirmation"]
ignore_by_filters: []
project_root: "/<snip>"
backtrace_filters: [#<Proc:0x00000001015ba818@/Library/Ruby/Gems/1.8/gems/
ignore_user_agent: []
secure: false
protocol: "http"
host: "hoptoadapp.com"
development_lookup: true
proxy_user: nil
notifier_name: "Hoptoad Notifier"
http_open_timeout: 2
port: 80
proxy_host: nil
Setting up the Controller.
Processing request.
Raising 'HoptoadTestingException' to simulate application failure.
Sending request to http://hoptoadapp.com/notifier_api/v2/notices/:
<?xml version="1.0" encoding="UTF-8"?><notice version="2.0"><api-key>9<snip>4</api-key><notifier><name>Hoptoad Notifier</name><version>2.2.0</version><url>http://hoptoadapp.com</url></notifier><error><class>HoptoadTestingException</class><message>HoptoadTestingException: Testing hoptoad via &quot;rake hoptoad:test&quot;. If you can see this, it works.</message><backtrace><line file="[PROJECT_ROOT]/vendor/rails/activesupport/lib/active_support/callbacks.rb" method="send" number="178"/><line file="[PROJECT_ROOT]/vendor/rails/activesupport/lib/active_support/callbacks.rb" method="evaluate_method" number="178"/><line file="[PROJECT_ROOT]/vendor/rails/activesupport/lib/active_support/callbacks.rb" method="call" number="166"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb" method="call" number="225"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb" method="run_before_filters" number="629"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb" method="call_filters" number="615"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb" method="perform_action_without_benchmark" number="610"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb" method="perform_action_without_rescue" number="92"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/rescue.rb" method="perform_action_without_flash" number="160"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/flash.rb" method="perform_action" number="146"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb" method="send" number="532"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb" method="process_without_filters" number="532"/><line file="[PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb" method="sass_old_process" number="606"/><line file="[PROJECT_ROOT]/vendor/gems/haml-2.2.14/lib/sass/plugin/rails.rb" method="process_without_compass" number="19"/><line file="[PROJECT_ROOT]/vendor/gems/chriseppstein-compass-0.8.15/lib/compass/app_integration/rails/action_controller.rb" method="process" number="7"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="call" number="636"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="execute" number="636"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="each" number="631"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="execute" number="631"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="invoke_with_call_chain" number="597"/><line file="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb" method="synchronize" number="242"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="invoke_with_call_chain" number="590"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="invoke" number="583"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="invoke_task" number="2051"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="top_level" number="2029"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="each" number="2029"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="top_level" number="2029"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="standard_exception_handling" number="2068"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="top_level" number="2023"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="run" number="2001"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="standard_exception_handling" number="2068"/><line file="[GEM_ROOT]/gems/rake-0.8.7/lib/rake.rb" method="run" number="1998"/><line file="[GEM_ROOT]/gems/rake-0.8.7/bin/rake" method="" number="31"/><line file="/usr/bin/rake" method="load" number="19"/><line file="/usr/bin/rake" method="" number="19"/></backtrace></error><request><url>http://test.host/</url><component></component><action></action><cgi-data><var key="SERVER_NAME">example.org</var><var key="HTTP_USER_AGENT">Rails Testing</var><var key="CONTENT_LENGTH">0</var><var key="rack.url_scheme">http</var><var key="action_controller.request.request_parameters"></var><var key="rack.errors">#&lt;StringIO:0x105693420&gt;</var><var key="REMOTE_ADDR">0.0.0.0</var><var key="rack.version">10</var><var key="PATH_INFO">/</var><var key="rack.run_once">false</var><var key="SCRIPT_NAME"></var><var key="rack.multithread">true</var><var key="action_controller.request.path_parameters"></var><var key="rack.multiprocess">true</var><var key="SERVER_PORT">80</var><var key="REQUEST_METHOD">GET</var><var key="rack.input">#&lt;StringIO:0x1056933a8&gt;</var><var key="QUERY_STRING"></var></cgi-data></request><server-environment><project-root>/<snip></project-root><environment-name>development</environment-name></server-environment></notice>
** [Hoptoad] Success: Net::HTTPOK
** [Hoptoad] Environment Info: [Ruby: 1.8.7] [Rails: 2.3.5] [Env: development]
** [Hoptoad] Response from Hoptoad:
<?xml version="1.0" encoding="UTF-8"?>
<notice>
<error-id type="integer">1387128</error-id>
<url>http://liveline.hoptoadapp.com/errors/1387128/notices/230615909</url>
<id type="integer">230615909</id>
</notice>
Rendered layouts/_head (2.8ms)
rake aborted!
You must activate the Authlogic::Session::Base.controller with a controller object before creating objects
(See full trace by running task with --trace)
rake hoptoad:test failed. Rolling back
rm config/initializers/hoptoad.rb
remove
Dir[File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
$: << File.join(vendored_notifier, 'lib')
end
require 'hoptoad_notifier/capistrano'
removed from config/deploy.rb
rm lib/tasks/hoptoad_notifier_tasks.rake
notempty lib/tasks
notempty lib
Loaded suite script/generate
Started
Finished in 0.000476 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
@liveline
Copy link

liveline commented May 27, 2010

Never did solve it :( Still stuck on with an old version of the plugin. I didn't spend that much time on it though.

@jamesbebbington
Copy link
Author

jamesbebbington commented May 27, 2010

Ah OK, thanks for the tip! I'll give that a go.

@joshuacronemeyer
Copy link

joshuacronemeyer commented Jul 18, 2010

The way I got around this was to comment out the code inside the current_user_session method in my ApplicationController. That is where I was doing the UserSession.find.

@jamesbebbington
Copy link
Author

jamesbebbington commented Jul 20, 2010

For anyone else who stumbles on this error, I just had another stab at this and didn't suffer the same issue with AuthLogic with v2.3.2 of the hoptoad_notifier gem. I did suffer this one however:

http://help.hoptoadapp.com/discussions/problems/686-hoptoad-setup-isnt-working-hoptoadtest-failed-rolling-back

Temporarily commenting out the newrelic_rpm gem in environment.rb did the trick though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment