Sorry for the delay... I just want to have the correct solution.
Issue is still the same: There are more attempts to connect (there is the loop..). Which error is relevant?
Frankly, perhaps we should return just first one. Or maybe detect that the site does not support ipv4, then report error for ipv6, otherwise ipv4. I do not know... (that is why I have not acted then).