You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting this error: System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Here is the stacktrace (Some internal business methods have been renamed)
> System.Private.CoreLib.dll!System.Diagnostics.StackFrameHelper.InitializeSourceInfo(int iSkip, bool fNeedFileInfo, System.Exception exception) Line 99 C#
System.Private.CoreLib.dll!System.Diagnostics.StackTrace.CaptureStackTrace(int skipFrames, bool fNeedFileInfo, System.Exception e) Line 64 C#
System.Private.CoreLib.dll!System.Diagnostics.StackTrace.StackTrace(System.Exception e, bool fNeedFileInfo) Line 92 C#
AWSXRayRecorder.Core.dll!Amazon.XRay.Recorder.Core.Strategies.DefaultExceptionSerializationStrategy.DescribeException(System.Exception e, System.Collections.Generic.IEnumerable<Amazon.XRay.Recorder.Core.Internal.Entities.Subsegment> subsegments) Unknown
AWSXRayRecorder.Core.dll!Amazon.XRay.Recorder.Core.Internal.Entities.Entity.AddException(System.Exception e) Unknown
AWSXRayRecorder.Core.dll!Amazon.XRay.Recorder.Core.AWSXRayRecorderImpl.AddException(System.Exception ex) Unknown
AWSXRayRecorder.Handlers.System.Net.dll!Amazon.XRay.Recorder.Handlers.System.Net.HttpClientXRayTracingHandler.SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Unknown
[Resuming Async Method]
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<Amazon.XRay.Recorder.Handlers.System.Net.HttpClientXRayTracingHandler.<SendAsync>d__2>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<Amazon.XRay.Recorder.Handlers.System.Net.HttpClientXRayTracingHandler.<SendAsync>d__2>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Amazon.XRay.Recorder.Handlers.System.Net.HttpClientXRayTracingHandler.<SendAsync>d__2>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.SetException(System.Exception exception) Line 784 C#
[Completed] cC.dll!cC.Microservices.CustomDelegatingHandler.SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Line 76 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<System.__Canon>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<cC.dll!cC.Microservices.CustomDelegatingHandler.<SendAsync>d__6>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<System.__Canon>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.SetException(System.Exception exception) Line 784 C#
[Completed] Microsoft.Extensions.Http.dll!Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Line 62 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendAsync>d__5>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendAsync>d__5>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendAsync>d__5>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.SetException(System.Exception exception) Line 784 C#
[Completed] System.Net.Http.dll!System.Net.Http.DiagnosticsHandler.SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Line 149 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<System.Net.Http.DiagnosticsHandler.<SendAsync>d__2>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<System.Net.Http.DiagnosticsHandler.<SendAsync>d__2>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<System.Net.Http.DiagnosticsHandler.<SendAsync>d__2>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.SetException(System.Exception exception) Line 784 C#
[Completed] System.Net.Http.dll!System.Net.Http.RedirectHandler.SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Line 83 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<System.Net.Http.RedirectHandler.<SendAsync>d__4>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<System.Net.Http.RedirectHandler.<SendAsync>d__4>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<System.Net.Http.RedirectHandler.<SendAsync>d__4>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.SetException(System.Exception exception) Line 784 C#
[Completed] System.Net.Http.dll!System.Net.Http.HttpConnectionPool.SendWithRetryAsync(System.Net.Http.HttpRequestMessage request, bool doRequestAuth, System.Threading.CancellationToken cancellationToken) Line 552 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<SendWithRetryAsync>d__47>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.Net.Http.HttpResponseMessage>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<SendWithRetryAsync>d__47>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<SendWithRetryAsync>d__47>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Http.HttpConnectionBase, bool, System.Net.Http.HttpResponseMessage)>.SetException(System.Exception exception) Line 784 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<(System.Net.Http.HttpConnectionBase, bool, System.Net.Http.HttpResponseMessage)>.SetException(System.Exception exception) Line 164 C#
[Completed] System.Net.Http.dll!System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Line 343 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Http.HttpConnectionBase, bool, System.Net.Http.HttpResponseMessage)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<GetHttpConnectionAsync>d__45>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Http.HttpConnectionBase, bool, System.Net.Http.HttpResponseMessage)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<GetHttpConnectionAsync>d__45>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.__Canon, bool, System.__Canon)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<GetHttpConnectionAsync>d__45>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Http.HttpConnection, System.Net.Http.HttpResponseMessage)>.SetException(System.Exception exception) Line 784 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<(System.Net.Http.HttpConnection, System.Net.Http.HttpResponseMessage)>.SetException(System.Exception exception) Line 164 C#
[Completed] System.Net.Http.dll!System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) Line 674 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Http.HttpConnection, System.Net.Http.HttpResponseMessage)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<CreateHttp11ConnectionAsync>d__53>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Http.HttpConnection, System.Net.Http.HttpResponseMessage)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<CreateHttp11ConnectionAsync>d__53>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.__Canon, System.__Canon)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<CreateHttp11ConnectionAsync>d__53>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.RunContinuations(object continuationObject) Line 3326 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageThree() Line 2176 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishStageTwo() Line 2145 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.FinishSlow(bool userDelegateExecute) Line 2076 C#
System.Private.CoreLib.dll!System.Threading.Tasks.Task.TrySetException(object exceptionObject) Line 3226 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Sockets.Socket, System.IO.Stream, System.Net.TransportContext, System.Net.Http.HttpResponseMessage)>.SetException(System.Exception exception) Line 784 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<(System.Net.Sockets.Socket, System.IO.Stream, System.Net.TransportContext, System.Net.Http.HttpResponseMessage)>.SetException(System.Exception exception) Line 164 C#
[Completed] System.Net.Http.dll!System.Net.Http.HttpConnectionPool.ConnectAsync(System.Net.Http.HttpRequestMessage request, bool allowHttp2, System.Threading.CancellationToken cancellationToken) Line 660 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Sockets.Socket, System.IO.Stream, System.Net.TransportContext, System.Net.Http.HttpResponseMessage)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<ConnectAsync>d__52>.ExecutionContextCallback(object s) Line 580 C#
System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 172 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.Net.Sockets.Socket, System.IO.Stream, System.Net.TransportContext, System.Net.Http.HttpResponseMessage)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<ConnectAsync>d__52>.MoveNext(System.Threading.Thread threadPoolThread) Line 617 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<(System.__Canon, System.__Canon, System.__Canon, System.__Canon)>.AsyncStateMachineBox<System.Net.Http.HttpConnectionPool.<ConnectAsync>d__52>.MoveNext() Line 595 C#
System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.OutputWaitEtwEvents.AnonymousMethod__12_0(System.Action innerContinuation, System.Threading.Tasks.Task innerTask) Line 304 C#
System.Private.CoreLib.dll!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action action, bool allowInlining) Line 742 C#
System.Private.CoreLib.dll!
The process here is that we use .AddHttpClient() and then call .AddHttpMessageHandler<HttpClientXRayTracingHandler>() on that client so we get XRay tracing on our calls. If the HttpClient has a root URL of 'https://localhost:port' but there is no service running on that port we get the error. When we turn the service on the error goes away.
The text was updated successfully, but these errors were encountered:
Hi @HardBlock729
What is the .Net runtime for your application and do you know what is the exception returned when the service is not running on that address?
Also, do you have a small reproduction code or a snippet that can help us simulate the issue?
@srprash
This is running on a Windows computer using .net core 3.1 MVC. The code is triggered when making an HTTP call from the MVC application to a micro-service. We are using a DelegatingHandler to add some headers, and also using the xray DelegatingHandler to add tracking and metrics. When the called service is not running we do not get the expected 404, 500, or some other failure code, we instead get this error.
Here is the setup we used:
We are getting this error: System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Here is the stacktrace (Some internal business methods have been renamed)
The issue seems to be coming form this location: https://github.com/aws/aws-xray-sdk-dotnet/blob/master/sdk/src/Core/Strategies/DefaultExceptionSerializationStrategy.cs#L170
The process here is that we use
.AddHttpClient()
and then call.AddHttpMessageHandler<HttpClientXRayTracingHandler>()
on that client so we get XRay tracing on our calls. If theHttpClient
has a root URL of 'https://localhost:port' but there is no service running on that port we get the error. When we turn the service on the error goes away.The text was updated successfully, but these errors were encountered: