Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to 'func start' - Value cannot be null. (Parameter 'provider') #4216

Open
brgsstm opened this issue Dec 23, 2024 · 3 comments
Open

Unable to 'func start' - Value cannot be null. (Parameter 'provider') #4216

brgsstm opened this issue Dec 23, 2024 · 3 comments

Comments

@brgsstm
Copy link

brgsstm commented Dec 23, 2024

Found Python version 3.11.9 (py).

Azure Functions Core Tools
Core Tools Version: 4.0.6518 Commit hash: N/A +74ed9095fdd6c5326276aae6b8a7d41ccbdeb6aa (32-bit)
Function Runtime Version: 4.35.4.23179

[2024-12-23T12:10:21.035Z] A host error has occurred during startup operation '7778c4b0-3db5-41ad-a663-17d8c31f8218'.
[2024-12-23T12:10:21.041Z] Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: python not found.
[2024-12-23T12:10:21.055Z] Failed to stop host instance '11442eb7-fabb-4f60-9d48-0e53af2c843e'.
[2024-12-23T12:10:21.056Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.
Value cannot be null. (Parameter 'provider')
[2024-12-23T12:10:21.070Z] Host startup operation has been canceled

@surgupta-msft
Copy link
Contributor

Can you try again with the latest coretools version 4.0.6594? I tried a quick repro and it worked fine.

@brgsstm
Copy link
Author

brgsstm commented Dec 31, 2024

Can you try again with the latest coretools version 4.0.6594? I tried a quick repro and it worked fine.

Apologies for the late reply. I'm using Choco, I uninstalled the azure-functions-core-tools package and reinstalled specifically the version you are referring to, yet for some reason I was still getting 4.0.6518... It's definitely being uninstalled as 'func' does not run once uninstalled.

Image

If I reference func.exe via it's file path directly this now works though...

Image

@saadalia
Copy link

I can see that you are trying to run it from VS Code,

Can you please go to the Azure Functions Extension Settings -> Azure Functions: Func Cli Path

vscode://settings/azureFunctions.funcCliPath

Set it to match the Choco path, since it is up to date and working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants