Warning message to start a local function: Can't figure out which ctor to call.

Samuel Souza 1 Reputation point
2022-11-21T21:39:22.33+00:00

Hello,

I receive the following error message to start a local function:

Azure Functions Core Tools
Core Tools Version: 4.0.4895 Commit hash: N/A (64-bit)
Function Runtime Version: 4.13.0.19486

Functions:

    MigrateProducts: timerTrigger  

Function DeleteCustomer is disabled.
Function FreeShippingReport is disabled.
Function MergeCart is disabled.
Function PrivacyAnonymization is disabled.
Function PrivacyDataRetrieval is disabled.
Function SyncCustomer is disabled.
For detailed output, run func with --verbose flag.
[2022-11-21T18:58:21.222Z] Worker process started and initialized.
[2022-11-21T18:58:21.446Z] The 'EventHubListener' function is in error: Unable to configure binding 'message' of type 'eventHubTrigger'. This may indicate invalid function.json properties. Can't figure out which ctor to call.
[2022-11-21T18:58:21.447Z] The 'EventHubTrigger1' function is in error: Unable to configure binding 'eventHubMessages' of type 'eventHubTrigger'. This may indicate invalid function.json properties. Can't figure out which ctor to call

When I do start it locally (the above does still start ok) I can run the MigrateProducts locally without any issue or unexpected errors.

I did roll back to v3 and make all the needed code changes (since node 18 is not supported on v3) but got the same error.

Any advice about this incident will be appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.