Skip to content

Client request extensions don't throw #1692

Closed
@alexeyzimarev

Description

@alexeyzimarev

Extensions like GetAsync or PostAsync should throw if the request wasn't successful.

However, it doesn't happen. The reason seems to be that the RestResponse instance gets the correct status (error), but doesn't get any exception set because of that. And, ThrowIfError only checks the exception, ignoring the status.

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