Oringally reported:microsoft/ApplicationInsights-aspnetcore#823
Application Insights Rejecting Exceptions with empty Message
Repro:
TelemetryClient tc = new TelemetryClient();
tc.Context.InstrumentationKey = "validikey";
tc.TrackException(new Exception(""));
tc.Flush();
Response from backend:
Field 'message' on type 'ExceptionDetails' is required but missing or empty. Expected: string, Actual: undefined
// The following gets mesage automatically populated, but passing "" or string.empty breaks it.
var ex = new Exception();
tc.TrackException(ex);
Fix would be to modify Exception sanitization to handle this properly.