Open dgsantana opened 1 year ago
I suspect that the UnexpectedEof
comes from rustls, perhaps saying that the it didn't properly end the TLS message.
Probably, for any Status 200 it seems rustls completes the read operation. But I do need to get the body of the 500 status message :).
This sounds like it might be similar to https://github.com/hyperium/hyper/issues/3427, but for the HTTP/1 case.
I'm hitting a very weird case. When using NativeTLS the same exact code works, and I can get the body from the response either text() or bytes(). But when using RusTLS (and I need too due to the certificates I'm required to use), it always fails and says it's EOF, but I can see that reqwest did received all the response.
The expected response body is:
The log when using RusTLS (ignore the fact of the 500 Error, it's the same in NativeTLS)
PS: I don't have control over the server.