Add more info to UnexpectedStatus
exception
#840
Closed
M1troll
started this conversation in
Feature request
Replies: 1 comment 1 reply
-
I made PR #989 to implement this feature in its simplest form, by adding the response content to the error message. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Now when we set
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?
Beta Was this translation helpful? Give feedback.
All reactions