Azure / Azure/AppConfiguration-DotnetProvider
System.ArgumentOutOfRangeException List of configured name servers must not be empty. Parameter name: servers
- Dominant language
- C#
- Stars
- 93
- Forks
- 46
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 3
Description
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 LookupClient.QueryInternalAsync(DnsQuestion question, DnsQuerySettings queryOptions, IReadOnlyCollection servers, CancellationToken cancellationToken)
In App
Assembly:DnsClient Version:1.7.0.0 PublicKeyToken:4574bb5573c51424`
Called from: async Task> SrvLookupClient.InternalQueryAsync(string srvDns, CancellationToken cancellationToken)
async Task> 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(options =>
{
options.IgnoreMissingFeatures = false;
// The 'IgnoreMissingFeatureFilters' flag cannot be used in combination with a feature of requirement type 'All'.
options.IgnoreMissingFeatureFilters = false;
});
serviceCollection.AddSingleton(configuration)
.AddFeatureManagement()
.AddFeatureFilter()
.AddFeatureFilter();
var seviceProvider = serviceCollection.BuildServiceProvider();
this.featuremanager = seviceProvider.GetService();
```
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.