英文:
Azure function throws ExternalStartupException despite correct host.json
问题
我在我的函数概览中遇到了以下错误:
Microsoft.Azure.WebJobs.Script.ExternalStartupException:在外部启动类中构建配置时出错。---> Microsoft.Azure.WebJobs.Script.HostInitializationException:引用的捆绑包Microsoft.Azure.Functions.ExtensionBundle的版本1.8.1不满足所需的最低版本2.6.1。请在host.json中更新您的扩展包引用。
尽管我的host.json如下:
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.3.0, 4.0.0)"
}
}
有什么想法吗?
英文:
I'm having getting the following error in my function overview:
Microsoft.Azure.WebJobs.Script.ExternalStartupException : Error building configuration in an external startup class. ---> Microsoft.Azure.WebJobs.Script.HostInitializationException : Referenced bundle Microsoft.Azure.Functions.ExtensionBundle of version 1.8.1 does not meet the required minimum version of 2.6.1. Update your extension bundle reference in host.json
despite my host.json being :
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.3.0, 4.0.0)"
}
}
Any idea what's up ?
答案1
得分: 1
实际上,错误不是最新的。
在我的情况下,错误已经修复,但门户仍然显示错误。您可以通过转到与函数应用关联的存储帐户并清除表格来清除错误:
> "AzureFunctionsDiagnosticEventsDATEHERE"
感谢此答案。
英文:
Actually the error is not up-to-date.
In my case, the error was fixed but the portal still showed the error. You can clear the error by heading over to the storage account associated with your function app and clearing the table :
> "AzureFunctionsDiagnosticEventsDATEHERE"
Thx to this answer.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论