Skip to content

IDeleteResponse.OK is false #576

Closed
Closed
@nariman-haghighi

Description

@nariman-haghighi

Using the latest on master, noticing that delete response OK isn't correctly populating despite the underlying operation against ES succeeding without errors - here's the output from the immediate window:

?r.OK
false
?r.ConnectionStatus.Success
true
?r.ConnectionStatus
{StatusCode: 200,
Method: DELETE,
HttpStatusCode: 200
NumberOfRetries: 0
OriginalException: null
RequestMethod: "DELETE"
ResponseRaw: null
Success: true
SuccessOrKnownError: true

And the original call:

public bool Delele(Guid streamId)
        {
            IDeleteResponse r = new ElasticClient(SearchSettings).Delete<MediaStream>(streamId.ToString(), i => i.Index("Stream"));
            return r.OK;
        }

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