Skip to content

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

Closed
@alexeyzimarev

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.

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