【发布时间】:2020-04-05 11:31:34
【问题描述】:
我正在 Azure Function App 平台上运行一组持久函数(Node.js 编写)。
节点版本为 10,函数运行时为 2。
其中一些配置了触发器:
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"post"
]
},
{
"bindings": [
{
"name": "name",
"type": "activityTrigger",
"direction": "in"
}
],
"scriptFile": "../.../index.js"
}
从昨天开始,该功能在尝试打开时显示以下错误:
Function (func4/Create) Error: Microsoft.Azure.WebJobs.Host: Error indexing method
'Functions.Create'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'data' to type
'System.String'.
Session Id: 9b3d1a97c12b4c86b751b08ab17c06da
Timestamp: 2019-12-11T19:04:49.345Z
我不知道是什么导致了这种行为。
Kudu 日志也充满了相同的错误,但没有详细信息。
更新(依赖):
"dependencies": {
"axios": "^0.19.0",
"durable-functions": "^1.3.1",
"moment": "^2.24.0",
"momentjs": "^2.0.0",
"request": "^2.88.0",
"request-promise-native": "^1.0.8",
"xml-js": "^1.6.11"
},
"devDependencies": {
"@azure/functions": "^1.0.2-beta2",
"typescript": "^3.3.3"
}
【问题讨论】:
标签: javascript node.js azure azure-functions azure-durable-functions