Summary
We have been experiencing a rogue CurlException
being thrown without a very meaningful stack trace in an dotnetcore 2 ASP.NET app. This seems to be sent to AI from the AI Dependency Tracking Module. It's really just an annoyance in our logs, because it surfaces in our code as an Http response message from HttpClient. Is this a bug in System.Net.Http where it's logging an exception when it shouldn't? Is there a way to disable this, other than by disabling all of dependency tracking?
Environment
- .NET Core 2.1.4
- Host: Ubuntu 16.04 (Xenial) on an Azure Scale Set
Exception info (from Application Insights)
problemId: System.Net.Http.CurlException at System.Net.Http.CurlHandler.ThrowIfCURLEError
type: System.Net.Http.CurlException
assembly: System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
method: ystem.Net.Http.CurlHandler.ThrowIfCURLEError
outerType: System.Net.Http.HttpRequestException
outerMessage: An error occurred while sending the request.
outerAssembly: System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
outerMethod: System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
innermostType: System.Net.Http.CurlException
innermostMessage: Couldn't connect to server
parsed stack trace:
{"assembly":"System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a","method":"System.Net.Http.CurlHandler.ThrowIfCURLEError","level":0,"line":0}
{"assembly":"System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a","method":"System.Net.Http.CurlHandler+MultiAgent.FinishRequest","level":1,"line":0}
sdkVersion: rdddsc:2.5.0-33031