Skip to content

DefaultExceptionSerializationStrategy Throw System.NullReferenceException #96

@czd890

Description

@czd890

Occasionally throw exceptions:
AWSXRayRecorder.Handlers.AspNetCore : 2.6.0

Microsoft.AspNetCore.Server.Kestrel ERROR 58  Connection id "0HLOVUBU82R61", Request id "0HLOVUBU82R61:00000048": An unhandled exception was thrown by the application. 
System.NullReferenceException: Object reference not set to an instance of an object.
   at Amazon.XRay.Recorder.Core.Strategies.DefaultExceptionSerializationStrategy.<>c__DisplayClass14_0.<DescribeException>b__3(ExceptionDescriptor d)
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at Amazon.XRay.Recorder.Core.Strategies.DefaultExceptionSerializationStrategy.DescribeException(Exception e, IEnumerable`1 subsegments)
   at Amazon.XRay.Recorder.Core.Internal.Entities.Entity.AddException(Exception e)
   at Amazon.XRay.Recorder.Core.AWSXRayRecorderImpl.AddException(Exception ex)
   at Amazon.XRay.Recorder.Handlers.AspNetCore.Internal.AWSXRayMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions