Deploy noise
NoMethodError
undefined method 'send_plain_text_email' for class GenericMailer
In one line
Queued mail jobs for GenericMailer.send_plain_text_email failed because that action was deliberately removed in a deploy, and no code in the repo enqueues it any more.
Checked against the code
What happened
- Sidekiq ran ActionMailer::MailDeliveryJob jobs that call GenericMailer.send_plain_text_email, which no longer exists.
- The action is gone from app/mailers/generic_mailer.rb, and no caller of it remains in the repo.
- A spec on releases/master asserts the method was removed on purpose ('deprecated send_plain_text_email action').
- There are only 6 events over 5 days and 0 users, which fits a few stale jobs left in the queue or retry set rather than a live caller.
What to do next
- Check In the Sidekiq Web UI, look at the Retries and Dead sets for MailDeliveryJob entries with GenericMailer/send_plain_text_email, and delete them. Then confirm Bugsnag stops receiving new events.
- Check Ask the team whether any external system or service on an older release is still enqueuing send_plain_text_email. If new events appear after the old jobs are cleared, a caller outside this repo is still enqueuing it.
Queries are shown, never run. Check them before using them on production.
Ask a follow-up
Continues the same session, so it still remembers the error and the code it read.
Analysed 1 h ago · claude-sonnet-5-5 · $0.14