KeyVaultReferencesManager throws an error when provided a null config item
See original GitHub issueWhen KeyVaultReferencesManager attempts to match config items with the Key Vault Reference format it can result in a cryptic error being thrown
Key Vault Reference format invalid:
The following is an example from a newly created empty function app
local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"test": null
}
}
On Debug
Azure Functions Core Tools
Core Tools Version: 3.0.4378 Commit hash: N/A (64-bit)
Function Runtime Version: 3.4.2.0
[2022-03-17T01:43:06.010Z] Found C:\***\NullValueFunction\NullValueFunction.csproj. Using for user secrets file configuration.
Key Vault Reference format invalid:
Press any key to continue....
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:22 (5 by maintainers)
Top Results From Across the Web
How to fix null value error when loading configuration file
Spring Boot throws Caused by: java.lang.IllegalArgumentException: null when auto-configuring a component. I have no null properties in my ...
Read more >Still having big problems with Object reference not set to an ...
The error means that your code is trying to access/reference an object that is a null valued object that is not there in...
Read more >Unhandled null value error - Plugin Development
I use terraform-plugin-framework to develop a plugin. I find that when i call func (c Config) Get(ctx context.Context, target interface{}) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just encountered this as well. For me the workaround was to remove all properties which are initialized with null values in appsettings.json, like this line: When i removed it, it’s all good and at least the function starts,
Thanks, that cleared up the problem. Both V3 and V4 function runtimes are working again.