Azure函数抛出ExternalStartupException,尽管host.json正确。

huangapple go评论127阅读模式
英文:

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:

  1. 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 :

  1. {
  2. "version": "2.0",
  3. "extensionBundle": {
  4. "id": "Microsoft.Azure.Functions.ExtensionBundle",
  5. "version": "[3.3.0, 4.0.0)"
  6. }
  7. }

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.

huangapple
  • 本文由 发表于 2023年7月17日 19:29:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76704012.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定