Questions tagged [exception-notification]

The Exception Notification gem provides a set of notifiers for sending notifications when errors occur in a Rack/Rails application.

The built-in notifiers can deliver notifications by email, campfire rooms or via webhooks.

There's a great Railscast about Exception Notification you can see that may help you getting started.

See https://github.com/rails/exception_notification/

38 questions
2
votes
2 answers

How to access exception recipients after initialisation with exception notification gem?

I want to be able to define the exception_recipients dynamically, based on the Rails environment. For example: recipients = Rails.env == 'production' exceptions@myapp.com else User.current.email end However, from the…
rwb
  • 4,309
  • 8
  • 36
  • 59
2
votes
1 answer

Configuring Exception Notification with Delayed Jobs in Rails 4

I can't get the Exception Notification gem to notify me when a Delayed Job fails. I can have jobs fail, but no notification is going out. Anyone else figured this out? I'm using: delayed_job_active_record (4.0.0) exception_notification…
1
vote
1 answer

Exception Notifier in Rails 4 app's not sending email

I am fighting with this issue the whole afternoon. I used this gem: gem 'exception_notification' and then I put this to the /config/environments/production.rb file: config.action_mailer.default_url_options = { :host => 'http://www.website.com' } …
user984621
  • 46,344
  • 73
  • 224
  • 412
1
vote
1 answer

Rails 4.1 and exception_notification-rake gem causing uninitialized constant ExceptionNotification

I've upgraded to Rails 4.1 and am trying to set up the exception_notification-rake gem to notify me by email of failed rake tasks. In my Gemfile, I have gem 'exception_notification-rake'. In development.rb, I have the…
DaniG2k
  • 4,772
  • 36
  • 77
1
vote
0 answers

ExceptionNotifier and rake:db:migrate

App and migrations work fine locally but rake db:migrate fails on the server with this error: undefined method `new' for ExceptionNotifier:Module The only migration I'm trying to run passed locally and looks like this: def change change_table…
1
vote
1 answer

Exception Notification

I am trying to make an exception notifier. I installed the gem and put this code in production.rb: config.action_mailer.delivery_method = :sendmail # Defaults to: config.action_mailer.sendmail_settings = { :location =>…
1
vote
1 answer

Ruby on Rails exception handling basics

I have a Rails 3 app that is using the exception_notification gem to send emails about exceptions. I would also like to show users specific error messages when exceptions occur, but by catching a generic Exception because I'm not sure of all the…
mstrom
  • 1,655
  • 3
  • 26
  • 41
1
vote
2 answers

exception_notification: smtp not working

I am using Rails 3.2.5 and exception_notification gem. In production mode, I am generally sending emails using PostMarkApp's postmark-rails gem. Initially, I got a View error from exception_notification gem stating ActionView::Template::Error (code…
Pykih
  • 2,769
  • 3
  • 29
  • 38
0
votes
1 answer

Rails Exception Notification 500 Errors

I'm running the Exception Notification gem on Rails 5. I have it setup the default way in config/environments/production.rb: Rails.application.config.middleware.use ExceptionNotification::Rack, email: { # deliver_with: :deliver, # Rails >=…
mystic cola
  • 1,465
  • 1
  • 21
  • 39
0
votes
1 answer

java.lang.reflect.InvocationTargetException in Linux Environment but working with Windows

I am executing below mentioned java code with Windows system. It is working fine without any error. But i try to execute this code with Linux environment i am getting "java.lang.reflect.InvocationTargetException" error. String status =…
0
votes
0 answers

Rails ExceptionNotifier -> Notifier based on title

Is it possible to change ExceptionNotifier exception_recipients based on some variable or maybe Exception title? I want to send some main notifies to one email and other created via ExceptionNotifier.notify_exception to another.
0
votes
1 answer

Missing template exception_notifier/exception_notification.erb

The following error occurs when an exception is generated. I am using vendor/rails-2.3.10 and ruby 1.8.7 Missing template exception_notifier/exception_notification.erb in view path app/views Thanks in advance
0
votes
0 answers

Rails 3.2 ruby 1.9.3 exception_notification in staging not able to send mail

I am applying exception notification gem for rails 3.2 application. Following is my code gemfile gem 'exception_notification' config/environments/staging.rb Rails.application.config.middleware.use ExceptionNotification::Rack, email: { …
urjit on rails
  • 1,763
  • 4
  • 19
  • 36
0
votes
1 answer

How to send custom email in exception notification?

I have used exception notification gem to send exceptions to email, the email contains lots of data I want to minimize the data for e.g I don't want to send Environment details ------------------------------ Environment: …
M.R
  • 610
  • 2
  • 10
  • 34
0
votes
3 answers

multiple recipient in exception_notification

I am using exception_notification gem with my rails app and I want to send error report email to multiple email id. How I can do that ? config.middleware.use ExceptionNotification::Rack, email: { email_prefix: "[Ay Error] ", …
Adt
  • 495
  • 6
  • 19