ActionView::MissingTemplate in derivatives # authorize
Opened this issue · 0 comments
joncameron commented
Description
https://app.honeybadger.io/projects/54117/faults/96082350
Avalon has global handling for Solr and Fedora errors which generates a specific error page based on the error type. These partials are only :html format, so requests which trigger these errors that are in different formats (:json, :text, :m3u8, etc) fail to find the page and raise an error.
These non-html requests are primarily non-user facing and so we should not attempt to display an error page for them. This could potentially be accomplished by limiting the partial to html format documents, and silently logging the errors for requests in other formats.
Done Looks Like
- Non-user facing requests do not attempt to render an error page
- Requests get an HTML status code with an empty document
- Ensure errors get logged