I've got a lot of serde code working with HTTP requests but have somehow ran into something simple I can't figure out - because there's no error information.
"Could not parse response body: error decoding response body"
With other deserialization issues, serde would give me a specific error - can't find field, etc. But there's nothing here, and I can't see anything wrong.
It looks like the Display formatting for reqwest::Error does not print out the underlying source error, but the Debug formatting does. Or you can access it by using the .source() method.
I'm going to guess the intent was that Display would be shown to users as a response error while the Debug would be in the server log? Something something security?