Gracefully handle unknown formats#1671
Conversation
2ef6bf9 to
65c1213
Compare
There was a problem hiding this comment.
Part of me wonders if we should render a 400 here instead? Maybe not b/c we don't have a template and all that setup for a 400?
There was a problem hiding this comment.
I have no strong opinions, we could even render the "not found" page with a 400 status code if you think that would be better?
There was a problem hiding this comment.
Maybe? Now that I'm looking at the bug this fixes, I'm thinking a 404 makes a bit more sense.
There was a problem hiding this comment.
ok we'll stick with 404 for now. Thanks!
65c1213 to
be2ba20
Compare
**Why**: Bad input should not cause us to throw exceptions
|
In Rails 5, If the goal of this PR was to prevent on-call people from being awakened in the middle of the night, I think the solution is to exclude 406 errors from New Relic. Also, note that the New Relic errors linked to in the issue this PR was meant to fix are all |
|
I think Rails 5 has already been in production: https://github.com/18F/identity-idp/releases/tag/2017-08-30T210357 |
|
Perhaps the wrong tag was deployed? The stack trace doesn't lie. New Relic clearly shows Rails 4.2.8. |
|
Good catch finding the wrong tag thing! |
Why: Bad input should not cause us to throw exceptions