ruby-on-railsruby-on-rails-4airbrake

Using Airbrake in Rails projekt got error while testing


I try to use Airbrake in my Rails 4.2 project, but when I run

sudo rake airbrake:test

I got this error:

rake aborted!
Airbrake::Error: the 'default' notifier isn't configured

can anyone tell me whats the problem?

thanks!


Solution

  • Sounds like you have inadvertently upgraded to the new Airbrake v5 gem.

    You can:

    1. Follow the migration guide to migrate from airbrake v4 to v5
    2. Lock airbrake to v4, in the gemfile, e.g. something like gem 'airbrake', '~> 4.3'