Skip to content

UnexpectedStatus contains an uninformative message #839

Closed

Description

@M1troll

Problem

Now when we set

raise_on_unexpected_status=True

in the client, we will only see Unexpected status code: 400 (or smt like) when any unexpected status is received. But in fact, this is an uninformative message. To find out what is the reason for this exception, we should try to reproduce the situation ourselves and check the content of the response. Sometimes it's very difficult.

Solution I'd propose

Maybe add response content to text of UnexpectedStatus exception? Or add some flag that allows us to show the contents of the response when we receive an unexpected status code?

Activity

  1. locked and limited conversation to collaborators on Aug 16, 2023
  2. converted this issue into a discussion #840 on Aug 16, 2023
  3. added a commit that references this issue on Mar 6, 2024
    c437e41
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions