You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. 😄
The text was updated successfully, but these errors were encountered:
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. 😄The text was updated successfully, but these errors were encountered: