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
39
votes
8 answers

Rails Mailer "Net::OpenTimeout: execution expired" Exception on production server only

I am using Ruby MRI 2.0.0 and Rails 3.2.12 on a Ubuntu 12.04 TLS VPS and attempting to setup email notifications in my app. It was working fine a few days ago, but not anymore. My web host is OVH. My SMTP…
26
votes
6 answers

How to make ExceptionNotifier work with delayed_job in Rails 3?

I'd like ExceptionNotifier to send out an email when an exception happens in a delayed job, just like for other exceptions. How can I achieve that?
Alex Korban
  • 14,916
  • 5
  • 44
  • 55
19
votes
3 answers

exception_notification gem raises ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) only on Heroku production mode

I create rails app deployed on Heroku. also, exception_notification gem enabled. when it is on development setup ActionMailer to Gmail, everything is fine and sends a notification from Gmail address. but when it comes to production environment on…
16
votes
4 answers

Rails exception notifier in rake tasks

I have a simple rails application with a few controller and some rake tasks. A couple of tasks are executed by cron configured with whenever gem. One of my task is executed daily and sometime it raises an exception and by default I receive this…
Fabio
  • 18,856
  • 9
  • 82
  • 114
7
votes
2 answers

ActionMailer::Base::NullMail when trying exception_notification in development

I'd like to add the exception_notification gem to our app, however, this happens when I try to manually trigger a mail: exception # => # ExceptionNotifier::Notifier.exception_notification(request.env, exception) # =>…
6
votes
2 answers

send email when exception has occurred not working , using exception_notification

I am migrating from rails 2.3 to rails 3.1, I am trying to send a email when exception is generated. I am using exception_notification gem. My rest of the emails are working. But exception mail is not getting fired. below are the settings in my…
6
votes
2 answers

ExceptionNotifier.notify_exception not working

We are using this gem(https://github.com/smartinez87/exception_notification) with rails 3.2.11. We want to use following method "ExceptionNotifier.notify_exception(e)" from action of controller and from background process as mentioned on the wikie…
junaidmalik
  • 89
  • 1
  • 4
4
votes
2 answers

Error 500 causes memory bloat/leak in middleware

I recently discovered that I get memory bloats when I experience an error code 500 in my Rails apps (I run several and experience the same in all). I found out using Scout and could see a pattern of memory leaks (almost) every time I had a…
Christoffer
  • 2,271
  • 3
  • 26
  • 57
4
votes
2 answers

exception_notification for delayed_job

Is there a exception_notification-like gem for delayed_job? Preferably that works with REE-1.8.7 and Rails 2.3.10.
razenha
  • 7,660
  • 6
  • 37
  • 53
4
votes
0 answers

Get notified with exception_notification of exceptions raised during a cron job

We have several cron jobs scheduled with the help of the whenever gem using the following syntax in schedule.rb: runner "Task.do_something_great". Please note that they are not run through the rake command but using runner. We also use the…
4
votes
3 answers

Rails 4 + Exception Notifier doesn't send email in development mode

I am trying to test the Exception Notifier out locally (development). Here's my current setup: development.rb Myapp::Application.configure do # Set Mailer default url config.action_mailer.perform_deliveries = true …
user984621
  • 46,344
  • 73
  • 224
  • 412
3
votes
1 answer

ExceptionNotification not sending

I am using ExceptionNotification. Exception notification used to send me emails when an error occured, but now it doesn't. I'm getting the following error when an error occurs and the exception notifier would like to send: W,…
Will Taylor
  • 1,994
  • 2
  • 23
  • 36
3
votes
2 answers

ExceptionNotifier constant uninitialized Rails 3

I've read over many questions on this site as well as the GitHub documentation for ExceptionNotifier and its implementation in Rails 3, and I can't figure out why it won't work for me on my production server. On my local machine (a Mac), it works…
3
votes
1 answer

Missing template error with Exception Notification gem and Rails 3.2

We use exception_notification gem in our project and we're seeing missing template errors now. Here's what our setup looks like: # Gemfile gem 'exception_notification' # config/initializers/exception_notifications.rb if Rails.env.production? …
jxpx777
  • 3,632
  • 4
  • 27
  • 43
2
votes
1 answer

Exception_Notification is not aware of RecordNotFound exceptions

I'm trying to use exception_notification for the first time. I watched the Railscast and followed instructions from the author in http://smartinez87.github.io/exception_notification/. Everything seems to work fine with some sort of exceptions but…
1
2 3