milgner/redmine_airbrake_server — Issue #11: Problem with server - exceptions won't save
Author: lukaszchojnowski
Created: 2011-12-17 08:28:11+00:00
State: open

Everything is configured properly, but when i hit ```rake airbrake:test``` i get the following error:

```
2011-12-17T07:28:10+00:00 heroku[router]: POST projects.xxx.com/notifier_api/v2/notices/ dyno=web.1 queue=0 wait=0ms service=64ms status=500 bytes=674
2011-12-17T07:28:10+00:00 app[web.1]:
2011-12-17T07:28:10+00:00 app[web.1]: NoMethodError (undefined method `custom_fields' for nil:NilClass):
2011-12-17T07:28:10+00:00 app[web.1]: vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:117:in `check_custom_field_assignments'
2011-12-17T07:28:10+00:00 app[web.1]: vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:115:in `each'
2011-12-17T07:28:10+00:00 app[web.1]: vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:115:in `check_custom_field_assignments'

T07:28:10+00:00 app[web.1]: vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:85:in `read_settings'
2011-12-17T07:28:10+00:00 app[web.1]: vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:21:in `index'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actio

2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
2011-12-17T07:28:10+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: /home/heroku_rack/lib/date_header.rb:14:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/connection.rb:76:in `pre_process'
2011-12-17T07:28:10+00:00 app[web.1]: /home/heroku_rack/lib/last_access.rb:15:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/connection.rb:74:in `pre_process'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/connection.rb:57:in `process'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/connection.rb:42:in `receive_data'
2011-12-17T07:28:10+00:00 app[web.1]: eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
2011-12-17T07:28:10+00:00 app[web.1]: /home/heroku_rack/lib/static_assets.rb:9:in `call'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/backends/base.rb:57:in `start'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/connection.rb:74:in `catch'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/controllers/controller.rb:80:in `start'
2011-12-17T07:28:10+00:00 app[web.1]: eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/runner.rb:177:in `send'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/runner.rb:177:in `run_command'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/runner.rb:143:in `run!'
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) bin/thin:6
2011-12-17T07:28:10+00:00 app[web.1]: /usr/ruby1.8.7/bin/thin:19:in `load'
2011-12-17T07:28:10+00:00 app[web.1]:
2011-12-17T07:28:10+00:00 app[web.1]:
2011-12-17T07:28:10+00:00 app[web.1]: thin (1.2.6) lib/thin/server.rb:156:in `start'
2011-12-17T07:28:10+00:00 app[web.1]: Rendering /app/public/500.html (500 Internal Server Error)
2011-12-17T07:28:10+00:00 app[web.1]: /usr/ruby1.8.7/bin/thin:19
2011-12-17T07:28:10+00:00 heroku[nginx]: 79.189.24.58 - - [16/Dec/2011:23:28:10 -0800] "POST /notifier_api/v2/notices/ HTTP/1.1" 500 674 "-" "Ruby" projects.unitedideas.pl
```