Open mountain65 opened 4 years ago
It is not limited to the string/name "data". It also happens when you name your parameter "customer" and you try to bind to an object that has a "customer" property one level below the root.
Hi @mountain65, Apologies for the delayed response, the issue was somehow lost in the trace. I am able to reproduce the mentioned scenario exactly. We will check for the possibilities internally and update you with the findings.
This happens running it locally using the Azure Core Tools. Never tried it on Azure.
Investigative information
Please provide the following:
Repro steps
Provide the steps required to reproduce the problem:
Expected behavior
A normal run where the Core Tools tell me on what port my application is listening.
Actual behavior
A runtime error:
[2020-10-03T08:46:01.699] Microsoft.Azure.WebJobs.Host: Error indexing method 'MyFunction'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'data' to type 'FunctionAPp.CustomObject'. [2020-10-03T08:46:01.748] Error indexing method 'MyFunction' [2020-10-03T08:46:01.750] Microsoft.Azure.WebJobs.Host: Error indexing method 'MyFunction'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'data' to type 'FunctionAPp.CustomObject'.
Known workarounds
There are two workarounds:
Related information
C#
CSPROJ: