While trying to understand some net/http errors, I found that many net/http errors don't wrap their underlying errors yet (run grep -R "fmt.Errorf.*%v" net/http to see some).
@bradfitz are you open to making the default be to wrap errors in net/http? That is, can someone do a somewhat indiscriminate pass through net/http, wrapping errors everywhere they see an opportunity to do so?
The text was updated successfully, but these errors were encountered:
err=errors.New("net/http: server replied with more than declared Content-Length; truncated")
There's also Get http://X.com: dial tcp: lookup X.com: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. that i cannot find in the lib.