Azure / Azure/AppConfiguration-DotnetProvider
Process Crash in ASP.NET Framework 4.8
- Dominant language
- C#
- Stars
- 93
- Forks
- 46
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 3
Description
Stack overflow exception randomly crashed the process. It only happened twice in last few days. Did it simply got stack overflow because the number of retries? Appreciate the help
Packages used
```c#
8.1.1
4.0.0
9.0.3
```
How It is configured
```c#
var builder = new ConfigurationBuilder();
IConfigurationRefresher refresher = null;
builder.AddAzureAppConfiguration(options =>
{
var siteNameAsLabelFilter = System.Configuration.ConfigurationManager.AppSettings["system.environment"].ToLower();
var azureAppConfigConn = System.Configuration.ConfigurationManager.ConnectionStrings["AzureAppConfiguration"].ConnectionString;
refresher = options.Connect(azureAppConfigConn)
.ConfigureStartupOptions(startupOptions => startupOptions.Timeout = TimeSpan.FromSeconds(5))
.UseFeatureFlags(featureFlagOptions =>
{
// Label filters order is important. The last filter will override the value of the first filter if the key exists in last filter.
featureFlagOptions
.Select(KeyFilter.Any, "global")
.Select(KeyFilter.Any, siteNameAsLabelFilter)
.SetRefreshInterval(TimeSpan.FromMinutes(1));
})
.ConfigureClientOptions(clientOptions =>
{
clientOptions.Retry.MaxRetries = 10;
clientOptions.Retry.MaxDelay = TimeSpan.FromSeconds(30);
clientOptions.Diagnostics.ApplicationId = siteNameAsLabelFilter;
})
// Label filters order is important. The last filter will override the value of the first filter if the key exists in last filter.
.Select(KeyFilter.Any, "global")
.Select(KeyFilter.Any, siteNameAsLabelFilter)
.ConfigureRefresh(refresh =>
{
// app configurations will only be refreshed if the sentinel key is updated
refresh
.Register("Sentinel", "global", true)
.SetRefreshInterval(TimeSpan.FromMinutes(1));
})
.GetRefresher();
}, true);
```
Stack Trace
```c#
FaultingExceptionFrame
HelperMethodFrame
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification
Microsoft.Extensions.Configuration.AzureAppConfiguration.TracingUtils+d__3.MoveNext
System.Threading.ExecutionContext.RunInternal
System.Threading.ExecutionContext.Run
System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run
System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction
System.Threading.Tasks.Task.FinishContinuations
System.Threading.Tasks.Task.Finish
System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult mscorlib]].TrySetException
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult mscorlib]].SetException
Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationProvider+<>c__DisplayClass38_2+d.MoveNext
HelperMethodFrame
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationProvider+<>c__DisplayClass38_2+d.MoveNext
System.Threading.ExecutionContext.RunInternal
System.Threading.ExecutionContext.Run
System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run
System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1[[System.Boolean mscorlib]].InvokeContinuation
System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1[[System.Boolean mscorlib]].SignalCompletion
Azure.Data.AppConfiguration.ConditionalPageableImplementation+d__10.MoveNext
HelperMethodFrame
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
Azure.Data.AppConfiguration.ConditionalPageableImplementation+d__10.MoveNext
System.Threading.ExecutionContext.RunInternal
System.Threading.ExecutionContext.Run
System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run
System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction
System.Threading.Tasks.Task.FinishContinuations
System.Threading.Tasks.Task.Finish
System.Threading.Tasks.Task`1[[System.__Canon mscorlib]].TrySetException
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon mscorlib]].SetException
Azure.Data.AppConfiguration.ConditionalPageableImplementation+d__14.MoveNext
HelperMethodFrame
Azure.Data.AppConfiguration.ConditionalPageableImplementation+d__14.MoveNext
HelperMethodFrame
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification
Azure.Data.AppConfiguration.ConditionalPageableImplementation+d__14.MoveNext
System.Threading.ExecutionContext.RunInternal
System.Threading.ExecutionContext.Run
System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run
System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction
System.Threading.Tasks.Task.FinishContinuations
System.Threading.Tasks.Task.Finish
System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult mscorlib]].TrySetException
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult mscorlib]].SetException
System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder.SetException
Microsoft.Extensions.Configuration.AzureAppConfiguration.UserAgentHeaderPolicy+d__3.MoveNext
HelperMethodFrame
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification
Microsoft.Extensions.Configuration.AzureAppConfiguration.UserAgentHeaderPolicy+d__3.MoveNext
System.Threading.ExecutionContext.RunInternal
System.Threading.ExecutionContext.Run
System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run
System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction
System.Threading.Tasks.Task.FinishContinuations
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.