![](/img/trans.png)
[英]Azure function - func start giving error of Value cannot be null. Parameter name: provider
[英]local debug azure function fail with error - Value cannot be null. (Parameter 'provider')
我尝试在本地调试 azure function,但遇到了问题。 实际上,我只是按照以下链接的说明进行构建和测试,但不起作用。
指令在这里Debug the Azure Functions Python code local ,我根本没有修改代码。
当我尝试运行调试时,它会弹出错误。
执行任务:.venv\Scripts\activate; func 主机启动
找到 Python 版本 3.8.6 (py)。
Azure Functions Core Tools Core Tools Version: 3.0.3160 Commit hash: 00aa7f43cc5c5f15241b5e6e5363256f19ceb990 Function Runtime Version: 3.0.14916.0
值不能是 null。 (参数“提供者”)
终端将被任务重用,按任意键关闭它。
在 GitHub 或 stackoverflow 中搜索大量主题后,我不知道出了什么问题。 最后,我删除了 host.json 中的azure function extensionBundle 作为解决方法。
有没有人和我遇到同样的问题?
Below is my environment: Windows 10 Python 3.8.6 Function Core Tools Version:3.0.3160 python packages azure-functions 1.50
本地调试可能不起作用的另一件事是互联网连接不足。 当我尝试在互联网连接不佳(低速且不稳定)的酒店工作时,我遇到了同样的“值不能是 null。(参数'provider')”错误。
尝试更改您的 Azure Function 核心工具版本。
我在4.0.3971上,function 开始正常。
升级到 4.0.4670(当时最新),得到了和你一样的错误。
恢复到 4.0.3971,工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.