Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classify ActionDispatch::Http::MimeNegotiation::InvalidType errors as info-level severity #654

Conversation

Laukei
Copy link
Contributor

@Laukei Laukei commented Mar 23, 2021

Goal

Rails 6.1 adds a specific error for Mime::Type::InvalidMimeTypes primarily for error trackers, as the error is handled by Rails and returns a HTTP 406 response. This PR catches instances of that error as info-level severity, in keeping with existing behaviour for other similar errors.

Design

Changeset

  • The exception was added to the INFO_CLASSES in Bugsnag::Middleware::ClassifyError

Testing

  • None

@Laukei Laukei requested a review from imjoehaines March 23, 2021 10:30
Copy link
Contributor

@imjoehaines imjoehaines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Can you add a changelog entry for this too?

@Laukei
Copy link
Contributor Author

Laukei commented Mar 23, 2021

Can you add a changelog entry for this too?

Done 👍

@imjoehaines imjoehaines changed the base branch from master to next March 23, 2021 13:50
@imjoehaines imjoehaines merged commit 3573dc0 into next Mar 23, 2021
@imjoehaines imjoehaines deleted the add-actiondispatch-http-mimenegotiation-invalidtype-as-info-severity branch March 23, 2021 13:51
@imjoehaines imjoehaines mentioned this pull request Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants