最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论