Azure / AppConfiguration-DotnetProvider

The .NET Standard configuration provider for Azure App Configuration
https://github.com/Azure/AppConfiguration
MIT License
76 stars 32 forks source link

Handle exceptions thrown for invalid feature flags #550

Closed amerjusupovic closed 2 weeks ago

amerjusupovic commented 2 months ago

Currently, the provider will throw a FormatException when processing feature flags with an invalid JSON format. However, the TryRefreshAsync method and startup do not properly handle this exception and will cause the provider to fail when an invalid feature flag is loaded. It should instead catch the exception and return false, as it does for all other known exceptions.