admin管理员组文章数量:1391951
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
1 Answer
Reset to default 0The 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.
本文标签: nodejsFailed to find bindingStack Overflow
版权声明:本文标题:node.js - Failed to find binding? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744655204a2617923.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论