400 Bad Request when saving or attempting to publish content without meeting mandatory property requirements

Site editors are getting a silent errors when try to save or publish content nodes at the moment. Looking in the browser console there is a 400 Bad Request error being thrown on the POST to /umbraco/backoffice/umbracoapi/content/PostSave. When inspecting the response payload I can see at the end there is a model state error:

"ModelState": {
    "_Properties.image.invariant.null.value": ["Value cannot be empty"]
}

This would be expected if the mandatory image property does not have a value however it is not being shown in the UI.

Any ideas what could be causing this?

Resolved: The issue turned out to be an interceptor that was a bit greedy with the errors it was catching and subsequently swallowing up the validation errors.

1 Like