wget2
wget2 copied to clipboard
Failed to write 225 bytes (113: No route to host)
Not sure what the 225 bytes could be, can wget2 output the path where it was hoping to write them?
Not sure if 113 is an errno, but wouldn't normally show the numbers in the output..?
$ wget --tries=1 --timeout=8 -O log.txt http://www.appointmentdesk.net --2020-07-29 14:29:11-- http://www.appointmentdesk.net/ Resolving www.appointmentdesk.net (www.appointmentdesk.net)... 103.1.187.196 Connecting to www.appointmentdesk.net (www.appointmentdesk.net)|103.1.187.196|:80... failed: No route to host.
$ wget2 --tries=1 --timeout=8 -O log.txt http://www.appointmentdesk.net [0] Downloading 'http://www.appointmentdesk.net' ... Failed to write 225 bytes (113: No route to host)
That is likely the HTTP request that was send. Wget2 is highly async, so it's not waiting until the connection has been done and then send. It will fire the connect async, compile it's HTTP request and then send. So some errors, like 'No route to host' come out at this send. So the write of 225 bytes to the socket failed with errno 113 which means 'No route to host'.
Ok. wget1 didn't output this. Maybe this shouldn't be shown unless in debug mode? Or it could show, and give a clearer message with the host:port it was connecting to.