bugsnag / bugsnag-ruby

BugSnag error monitoring & reporting software for rails, sinatra, rack and ruby
https://docs.bugsnag.com/platforms/ruby
MIT License
246 stars 174 forks source link

Breadcrumb meta_data validation fails while using ActionMailer #802

Closed Studenich closed 9 months ago

Studenich commented 9 months ago

Describe the bug

Breadcrumb meta_data validation fails while using ActionMailer: Breadcrumb ActionMail delivered meta_data date:DateTime has been dropped for having an invalid data type

The email is delivered successfully btw if I catch this exception like this:

begin
  CompanyInvoiceMailer.report(email, report).deliver_now
rescue => exception
  exception.message
end

Environment

imjoehaines commented 9 months ago

Hi @Studenich, the validation on breadcrumb metadata types was removed in v6.19.0 so updating your bugsnag version should allow you to attach DateTime values to your breadcrumbs

The latest release is v6.26.0

Studenich commented 9 months ago

@imjoehaines Thanks a lot, it definately has helped me!