最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to resolve 'Value cannot be null' error when using Azure Functions Core Tools? - Stack Overflow

programmeradmin1浏览0评论

I am using Azure Functions Core Tools from a cloned repository. When I try to run npm run watch this error occurs:
Value cannot be null. (Parameter 'provider') Error in Terminal

I've installed Azure Functions Core Tools from this and was logged in on azure using azure-cli. I'm currently using Ubuntu 20.04.3 LTS.

I am using Azure Functions Core Tools from a cloned repository. When I try to run npm run watch this error occurs:
Value cannot be null. (Parameter 'provider') Error in Terminal

I've installed Azure Functions Core Tools from this https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v3%2Clinux%2Ccsharp%2Cportal%2Cbash%2Ckeda and was logged in on azure using azure-cli. I'm currently using Ubuntu 20.04.3 LTS.

Share Improve this question asked Dec 2, 2021 at 10:25 E to the IE to the I 1531 gold badge3 silver badges12 bronze badges 3
  • 1 Did you see this github issue? github.com/Azure/azure-functions-core-tools/issues/2232 Also it might be advisable that you install the core tools explicitly to resolve this issue learn.microsoft.com/en-us/azure/azure-functions/… – misha130 Commented Dec 2, 2021 at 11:19
  • 1 @misha130 Thank you. It has some conflicts with extensionBundle included in host.json file of the application. Still wondering why it won't work on my end while some of my team setups were not having the conflict issues. I just did installed it explicitly like you said and it did work. The only problem is that there will be different project structure now since installing explicitly provide the bin folder and extensions.csproj and extensionBundle code should be removed. I will still investigate further why the original setup does not work on my end. other than that, thank you very much. – E to the I Commented Dec 6, 2021 at 5:32
  • I'll add an answer in case other people encounter this – misha130 Commented Dec 6, 2021 at 10:24
Add a comment  | 

4 Answers 4

Reset to default 5

There are situations in which it is best to install the Azure Function Core Tools explicitly to avoid any conflict or versioning problems:

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-register#explicitly-install-extensions

Further discussion of this issue can be seen in:

https://github.com/Azure/azure-functions-core-tools/issues/2232

Had the same error message. My access was blocked via the azure firewall (vnet, subnets) and therefore, the local debugging was blocked (my IP was not added to the related storage accounts). After I added my IP to allowed list everything worked.

Encountered the same issue - the solution was to uninstall Azure Function Core Tools (Via "Add Or Remove Programs"), and then install them again

https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Cts%2Cportal%2Cbash#v2

Also had the same problem, and it seems like in my case the reason was low and unstable internet connectivity, I was trying to work from a hotel with bad internet connection. The reason I think so is that when I came back home and tried to reproduce the error, everything started working without any code updates.

发布评论

评论列表(0)

  1. 暂无评论