I have upgraded the Microsoft.Extensions.Configuration.AzureAppConfiguration nuget package from 6.0.0 to 8.0.0 now I am getting the below crash from our clients.
`async Task<IDnsQueryResponse> LookupClient.QueryInternalAsync(DnsQuestion question, DnsQuerySettings queryOptions, IReadOnlyCollection<NameServer> servers, CancellationToken cancellationToken)
In App
Assembly:DnsClient Version:1.7.0.0 PublicKeyToken:4574bb5573c51424`
Called from: async Task<IEnumerable<SrvRecord>> SrvLookupClient.InternalQueryAsync(string srvDns, CancellationToken cancellationToken)
async Task<IEnumerable<SrvRecord>> SrvLookupClient.QueryAsync(string host, CancellationToken cancellationToken)
async Task ConfigurationClientManager.RefreshFallbackClients(CancellationToken cancellationToken)
async Task ConfigurationClientManager.DiscoverFallbackClients()
System.ArgumentOutOfRangeException: List of configured name servers must not be empty.
Parameter name: servers
Exception fatal 08:56:28.941 PM
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
Below is the CDN configuration, we are connecting the feature flag via CDN link
private const string DefaultConnectionString = "Endpoint=https://xxxxxx-edge.azureedge.net;Id=0;Secret=MA==";
configurationBuilder.AddAzureAppConfiguration(options =>
{
// To connect with feature flag CDN edge.
options.Connect(this.connectionString);
options.UseFeatureFlags(config => config.SetRefreshInterval(this.Configuration.ConfigurationRefreshInterval));
this.configurationRefresher = options.GetRefresher();
}, true);
var serviceCollection = new ServiceCollection();
serviceCollection.Configure<FeatureManagementOptions>(options =>
{
options.IgnoreMissingFeatures = false;
// The 'IgnoreMissingFeatureFilters' flag cannot be used in combination with a feature of requirement type 'All'.
options.IgnoreMissingFeatureFilters = false;
});
serviceCollection.AddSingleton<IConfiguration>(configuration)
.AddFeatureManagement()
.AddFeatureFilter<ContextualTargetingFilter>()
.AddFeatureFilter<DeviceFilter>();
var seviceProvider = serviceCollection.BuildServiceProvider();
this.featuremanager = seviceProvider.GetService<IFeatureManager>();
During the initialization of SDK throws the above exception.
Could you please let me know how do I fix this issue? I also see the latest version 8.2.0, is it fixed in the latest version?
Thanks,
Sathishkumar
I have upgraded the
Microsoft.Extensions.Configuration.AzureAppConfigurationnuget package from 6.0.0 to 8.0.0 now I am getting the below crash from our clients.Below is the CDN configuration, we are connecting the feature flag via CDN link
During the initialization of SDK throws the above exception.
Could you please let me know how do I fix this issue? I also see the latest version 8.2.0, is it fixed in the latest version?
Thanks,
Sathishkumar