Skip to content

The Input was not valid #14143

@TehWardy

Description

@TehWardy

I'm not sure if this is a bug or more of a feature request.

I keep getting "bug reports" telling me that HTTP POST's are not being accepted with this error and it's near impossible to track down exactly what the issue is.

Whilst the exception is valid, this in the body ...

{
	"error": {
		"code": "",
		"message": "The input was not valid.",
		"details": [
			{
				"code": "",
				"message": "The input was not valid."
			}
		]
	}
}

... doesn't give us any hints as to how to fix this.

Is there any way M$ can improve this and perhaps tell us where / at what point in the parsing process of the data it encountered invalid input?

Ideally, still call the controller action and pass the details in to model state so that the response can be properly handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions