node.js - Failed to find binding? - Stack Overflow

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

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?

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?

Share Improve this question asked Mar 14 at 13:01 sschmecksschmeck 7,7536 gold badges42 silver badges77 bronze badges 2
  • Please Provide your function code. – Pravallika KV Commented Mar 19 at 9:00
  • @PravallikaKV, I'm not allowed to share the full function code. Are you interested in a specific aspect of the implementation? – sschmeck Commented Mar 20 at 8:19
Add a comment  | 

1 Answer 1

Reset to default 0

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744655205a4586139.html

相关推荐

  • node.js - Failed to find binding? - Stack Overflow

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

    2天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信