Hey I am having a weird issue I can't figure out. Basically I am trying to make a simple httpClient post request but I keep getting an "Invalid json primitive:." I have checked on https://jsonlint.com/ and it says this is valid json but my application states otherwise. Any info would be greatly appreciated?
string test = "{\"CurrentUser\":null,\"Stacktrace\":\"System.UnhandledExceptionEventArgs\",\"OtherData\":null,\"UserInput\":\"\",\"TimeStamp\":\"2017-10-10T16:48:58.606512-04:00\"}"
HttpContent httpContent = new StringContent(test);
await httpClient.PostAsync("/api/logException", httpContent);
And the client is initialized like:
httpClient = new HttpClient();
httpClient.BaseAddress = new Uri(this.serverURL);
httpClient.Timeout = TimeSpan.FromSeconds(400);