英文:
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.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论