Why doesn't reqwest take status and body from a server error? #1913
MordechaiHadad
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an axum server where if you post a file to it without a header attached, it will return 500 code with something like: "Header x is not specified"
so let's say this given request:
When commenting out this
header()
it will panic as expected from anunwrap()
but instead of giving me the actual status code and error body the server sends I get this instead:Only when I uncomment
header()
it will run as it should, which is the expected behavior.Beta Was this translation helpful? Give feedback.
All reactions