Posted 14 days ago. Visible to the public.

ExceptionNotification: Fix DNS lookup

The ExceptionNotification has plugins that talk to external APIs rather then just sends emails, like microsoft teams or slack. You might encounter that no exceptions are delivered, which can be dangerous.

To prevent getting into trouble, simply add require 'resolv-replace' on top of your to your initializers/exception_notification.rb file:

Copy
require 'resolv-replace' require 'exception_notification/rails' ExceptionNotification.configure do |config| ... end

This calls the Ruby DNS resolver before configuring ExceptionNotifier so the DNS lookup always works as expected.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Jakob Scholz
Last edit:
14 days ago
by Jakob Scholz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Jakob Scholz to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more