可以安全地忽略 Azure 函数看似过时的错误通知吗?

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

Can I safely ignore a seemly outdated error notification of Azure Function?

问题

Azure门户中的Azure函数概览一直显示错误在外部启动类中配置服务。但是,我的HTTP触发API正常工作,并且使用Functions -> Code/Test成功运行了定时触发的函数。另外,**创建时间(UTC)**大约是3小时前,点击次数从未超过36次。

我可以安全地假设这是一个过时的错误并忽略它吗?

英文:

The Overview of Azure Function from Azure Portal keeps showing the Error configuring services in an external startup class. However, my HTTP-triggered API works normally and timer-triggered function works successfully using Functions -> Code/Test. Plus, the Create time (UTC) is about 3 hours ago, and Hit count is never more than 36.
可以安全地忽略 Azure 函数看似过时的错误通知吗?

Can I safely assume that this is an outdated error and ignore it?

答案1

得分: 2

根据github链接,如果在FunctionsStartup类的任何一个Configure()方法调用中引发异常,将导致函数应用程序初始化失败。函数主机将捕获此异常,记录错误并重试初始化。这个重试有助于从瞬态错误中恢复,但是永久错误可能会在主机重试时多次记录。

根据SO问题,这是Portal端的瞬态问题,这就是为什么您的函数正常工作的原因。

作为一种解决方法,您可以尝试创建一个新的函数应用程序并将您的函数发布到其中。

如果您的问题仍然存在,我建议您与Microsoft支持团队提出此问题。

英文:

According to github link, If a call to either of the Configure() methods on the FunctionsStartup class throws an exception, it will cause the function app initialization to fail. The functions host will catch this exception, log the error, and retry initialization. This retry helps to recover from transient errors, but permanent errors may be logged many times as the host retries.

As per SO question, this is a transient issue on Portal's end and that's why your functions works fine.

As a workaround, you can try to create a new function app and publish your functions to it.

If your issue still persists, I would suggest to raise this concern with Microsoft support team.

huangapple
  • 本文由 发表于 2023年7月6日 20:57:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76629085.html
匿名

发表评论

匿名网友

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

确定