Skip to content

Rails 7 API only exception not working #530

@nengine

Description

@nengine

Steps to reproduce

rails g exception_notification:install --sidekiq

config/initializers/exception_notification.rb

config.add_notifier :email, {
email_prefix: '[ERROR] ',
sender_address: %{"Rails API Exception" dev@example.net},
exception_recipients: %w{admin@example.net}
}

:smtp email configured and working properly with sidekiq.

Expected behavior

ActiveRecord::RecordNotFound was raised and expected to get email notification.

Actual behavior

Nothing happens. No exception email received.

System configuration

Rails version:
7.0.1
Ruby version:
3.1
Other configurations:
SMTP email with sidekiq

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions