-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
[v3 Branch Pick] Exclude all 4xx Rails errors #1004
Conversation
Codecov Report
@@ Coverage Diff @@
## v3-1 #1004 +/- ##
=======================================
Coverage 97.85% 97.85%
=======================================
Files 46 46
Lines 2187 2187
=======================================
Hits 2140 2140
Misses 47 47 Continue to review full report at Codecov.
|
Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>
'ActionController::UnknownFormat', | ||
'ActionController::UnknownHttpMethod', | ||
'ActionDispatch::Http::Parameters::ParseError', | ||
'ActionView::MissingTemplate', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@st0012 I'm not sure what the current state of the v3
branch is, but the inclusion of ActionView::MissingTemplate
here feels like a bug. While Rails does render a 406 Not Acceptable
when ActionView::MissingExactTemplate
is raised, it renders a 500 Internal Server Error
when ActionView::MissingTemplate
is raised (via its default error handling).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think it's too aggressive to exclude the ActionView::MissingTemplate
by default. will remove it in the upcoming version. thanks for the opinion 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added #1092 to remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @st0012!!
This PR picks the changes of #769