Skip to content

HttpClient timeout doesn't set the correct response status #1725

Description

@alexeyzimarev

When the request timeout is set, and it expires, the cancellation is handled by the client so it sets the correct response status to ResponseStatus.TimedOut. However, the HttpClient timeout produces an exception, which is not handled by AddError, so the request gets the status ResponseStatus.Error.

The solution is to change the AddError function to handle the HttpClient timeout exception, and set the response status properly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions