简体   繁体   中英

socket Errno 10060

Im using requests to routinely download a webpage and check it for updates, but recently ive been getting these errors :

HTTPConnectionPool(host='somehost', port=someport): Max retries exceeded with url: someurl (Caused by : [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)

Now this script has been running for weeks with this issue never coming up. Could it be that the site administrator has started blocking my proxy's IP?

I should add that its not against the TOS of the site to scrape it.

Can anyone help me figure out whats the reason for this?

Thanks

The remote connection timed out.

The host you are trying to connect to is not answering; it is not refusing connections, it is just not responding at all to connection attempts.

Perhaps the host is overloaded or down? It could also be caused by the site blocking your IP address by dropping the packets (a firewall DROP rule instead of a REJECT rule).

You can try to connect to the site from a different IP address; if those connections work fine, but not from the original address, there is a higher likelihood that you are deliberately being blocked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM