Skip to content

ErrorText on successful response #565

Open
@tqrecords

Description

@tqrecords

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.

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