Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

local debug azure function fail with error - Value cannot be null. (Parameter 'provider')

I try to local debug the azure function, but got issue. Actually I just follow the instruction to build and tested with below link, but not work.

The instruction is here Debug the Azure Functions Python code locally, and I did not modified the code at all.

While I try to run debug, it pop up error.

Executing task: .venv\Scripts\activate ; func host start

Found Python version 3.8.6 (py).

Azure Functions Core Tools Core Tools Version: 3.0.3160 Commit hash: 00aa7f43cc5c5f15241b5e6e5363256f19ceb990 Function Runtime Version: 3.0.14916.0

Value cannot be null. (Parameter 'provider')

Terminal will be reused by tasks, press any key to close it.

I have no idea what's wrong after I search lots of topic in GitHub or stackoverflow. Finally I remove the azure function extensionBundle in the host.json as a workaround.

Did anyone encounter the same issue with me?

Below is my environment: Windows 10 Python 3.8.6 Function Core Tools Version:3.0.3160 python packages azure-functions 1.50

like image 286
Profatsir Avatar asked Oct 26 '25 19:10

Profatsir


2 Answers

Maybe you can try to open the Command Palette (F1), select the Python: Select Interpreter command, and then select the virtual environment in the local .venv folder

enter image description here

Or you can change host.json, extensionBundle requires a higher version.

enter image description here

like image 155
Frank Gong Avatar answered Oct 29 '25 08:10

Frank Gong


Another thing why local debugging might not work is low internet connection. I had such a case with same "Value cannot be null. (Parameter 'provider')" error when trying to work from a hotel with bad (low speed and not stable) internet connection.

like image 40
nismotri Avatar answered Oct 29 '25 09:10

nismotri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!