-
Notifications
You must be signed in to change notification settings - Fork 34
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
Exceptions leaking and cause view to render without PageModel #36
Comments
When an exception occurs while rendering a Region or Entity View, DXA tries to render the error using the |
I have a |
Here is some more stacktrace
|
After some more debugging we found what's causing this error in our implementation. The cause is twofold:
We fixed this by removing the DXA assumes there is no If you do happen to put
In the log posted in an earlier comment you can see that something goes wrong with the view model mapping. What happens is that
I propose the following changes to DXA:
|
Internal Issue ID (for tracking purposes): CRQ-12795 |
Sometimes DXA renders a page like this:
Error message
It looks like an exception is not caught by DXA, the webapp then wants to render an error message, the
_Layout.cshtml
is loaded and that one expects a PageModel object which of course is not present.This happens for example when an entity view model is not registered.
The text was updated successfully, but these errors were encountered: