azure-functions-core-tools: Value cannot be null. (Parameter 'provider') -> Impossible debug function locally

Description

Is impossible to debug an HTTP azure function locally. The application response error is: Value cannot be null. (Parameter ‘provider’)

Runtime and development environment

  • Python 3.9
  • Mac OS
  • Core Tools Version: 4.0.4785 Commit hash: N/A (64-bit)
  • Function Runtime Version: 4.10.4.19213

How to reproduce:

  1. Create an HTTP azure function with stack python 3.9
  2. Run function locally with func host start or F5
  3. See the error
Found Python version 3.7.9 (python3).

Azure Functions Core Tools
Core Tools Version:       4.0.4785 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.10.4.19213

Value cannot be null. (Parameter 'provider')

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 4
  • Comments: 15 (1 by maintainers)

Most upvoted comments

This is ridiculous.

This is still an issue. WinOS, VSCode, Python 3.11.

Core Tools 4.0.6610 Function Runtime 4.1036.23224

Modify the host.json file with "version": "[3.*, 3.9.0)"

working for me. { “version”: “2.0”, “extensionBundle”: { “id”: “Microsoft.Azure.Functions.ExtensionBundle”, “version”: “[3.*, 3.9.0)” } }

Modify the host.json file with "version": "[3.*, 3.9.0)"

For people migrating to .NET 8 having this error

in my case local.settings.json with this:

{
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_INPROC_NET8_ENABLED": "1",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "FUNCTIONS_EXTENSION_VERSION": "~4",
    "AzureWebJobsDashboard": "",
  }
}

helped. I am not saying it works for everyone, but in my case it was that.

I’m also having this problem but with Core Tools v4.0.5530, Function Runtime v4.28.5.21962 and running a dotnet-isolated (C#) function. My colleagues with the same versions are not having this problem, and it seemed to suddenly begin occurring.

[2024-02-29T16:35:28.356Z] A host error has occurred during startup operation 'ff2f07d9-d418-4237-a164-1a598fdf73d5'.
[2024-02-29T16:35:28.356Z] Microsoft.Azure.WebJobs.Script: Did not find functions with language [dotnet-isolated].
[2024-02-29T16:35:28.371Z] Failed to stop host instance '91c6d635-4685-4c5f-aab3-8c1eca2232eb'.
[2024-02-29T16:35:28.371Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.
Value cannot be null. (Parameter 'provider')

@omonimous did you get anywhere with this?

did you find the answer ?

I’m also having this problem but with Core Tools v4.0.5530, Function Runtime v4.28.5.21962 and running a dotnet-isolated (C#) function. My colleagues with the same versions are not having this problem, and it seemed to suddenly begin occurring.

[2024-02-29T16:35:28.356Z] A host error has occurred during startup operation 'ff2f07d9-d418-4237-a164-1a598fdf73d5'.
[2024-02-29T16:35:28.356Z] Microsoft.Azure.WebJobs.Script: Did not find functions with language [dotnet-isolated].
[2024-02-29T16:35:28.371Z] Failed to stop host instance '91c6d635-4685-4c5f-aab3-8c1eca2232eb'.
[2024-02-29T16:35:28.371Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.
Value cannot be null. (Parameter 'provider')

@omonimous did you get anywhere with this?