InvalidOperationException: Could not retrieve non-field form values from the HttpContext #1150
Labels
release/10.5.4
release/12.2.3
release/13.0.2
state/sprint-candidate
We're trying to get this in a sprint at HQ in the next few weeks
type/bug
Bug summary
I've been running an Umbraco 10 site for a while now and I'm getting exceptions in my logs from the Recaptcha v2 field. The error indicates that a non-field form value could not be retrieved from the HttpContext
Specifics
I'm using Umbraco forms version 10.5.2 on Umbraco 10.8.2.
The error is likely caused by malicious bots that attempt to submit an Umbraco forms form. Though it likely doesn't directly impact users, I find it at the least unnecessary to find this error in my logs. The absence of a field in the form data should be handled just like any other mandatory field that is not filled in.
Steps to reproduce
Expected result
I expect to be redirected back to the form indicating that the recaptcha value was invalid or an HTTP 4xx response. I do not expect an HTTP 500 response nor errors in my logs.
Actual result
HTTP 500 response and errors in my logs. Screenshot of stacktrace was provided earlier
This item has been added to our backlog AB#36930
The text was updated successfully, but these errors were encountered: