Open AtOMiCNebula opened 10 months ago
Thanks for reporting will discuss and update.
The error message suggests that the Azure Functions host doesn't load the function because it's marked as private.is there you specifically use private method otherwise if you create public method then this error will not face.
@bhagyshricompany / @fabiocav, yes I'm aware. The problem I'm trying to highlight is that this should be something the Generator reports as an error at compile-time, not as a warning/trace at run-time. The generator should not generate a host.json
that it knows the host won't actually be able to process.
I've reported a similar issue where the Generator generates doomed-to-fail host.json
when there are multiple overloads of a function in #583.
The Generator will happily generate a functions.json for code that the host can't handle. Specifically, code like this:
The Functions Host doesn't actually load the function because it's
private
(and reports a single trace log about it in App Insights, oy). Either the Generator should throw a warning/error in this case, or the host should enumerate private methods. Just need both parts to be consistent with each other. 😄