Azure / Azure/Azure-Functions

JSON input binding error of type InvalidCastException

Open
#551 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Just a suggestion, when I get a JSON input binding of this type :
```System.InvalidCastException at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType```
for an HttpTrigger, the runtime returns a 500 error.

I think most of the time, if not all the time, this can be treated as a 4xx error, probably a 422 since the input I received, failed validation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.