I have this line in my code for every response received from an api endpoint:
if (result.ErrorText != null) throw new Exception(result.ErrorText);
I'm checking for exceptions too, but I think I added this in as a fallback. In the latest update, it looks like the ErrorText field returns 'OK' on all successful responses. Is this a bug?
Since all my methods contain this fallback, I think I can apply this fix:
if (result.StatusCode != HttpStatusCode.OK) throw new Exception(result.ErrorText);
Wanted to flag because it's weird that the error text fields is populated when there are no errors.
Version: 9.2.0
I have this line in my code for every response received from an api endpoint:
if (result.ErrorText != null) throw new Exception(result.ErrorText);
I'm checking for exceptions too, but I think I added this in as a fallback. In the latest update, it looks like the ErrorText field returns 'OK' on all successful responses. Is this a bug?
Since all my methods contain this fallback, I think I can apply this fix:
if (result.StatusCode != HttpStatusCode.OK) throw new Exception(result.ErrorText);
Wanted to flag because it's weird that the error text fields is populated when there are no errors.