node.jsazureazure-functionsazure-durable-functions

Failed to find binding?


I have an Azure Function App which runs with Node.js. The project uses the following dependencies (from package.json).

"@azure/functions": "4.2.0",
"durable-functions": "3.1.0",

While running the Function App, the execution of several Activity functions fail with following error messages (examples).

Failed to find binding "activityTrigger1" in bindings "activityTrigger3".
Failed to find binding "activityTrigger2" in bindings "activityTrigger1".
Failed to find binding "activityTrigger4" in bindings "activityTrigger5".

Restarting the Servers seems to fix the issue.

The Activities are setup and called the following way.

// Setup
async function someActivity(operationEvent: OperationEvent, 
                            context: InvocationContext): Promise<ActivityResult> {
  // ..
}

app.activity('someActivity', { handler: someActivity });

// Orchestrator usage
context.df.callActivityWithRetry('someActivity', someRetryOptions, someParameter)

I found no further information about the error in the portal and the internet as well. How can I fix the issue?


Solution

  • The issue was solved by upgrading @azure/functions to a version >=4.3.0. The root cause is the same as the issue Cannot read properties of undefined (reading 'type'). The issue was fixed with Fix out-of-sync binding names causing null ref error and released with 4.3.0 of the npm package.