Failed to establish a new connection: [WinError 10060]
AmirGhiasi95 opened this issue · 1 comments
After implementing changes discussed in issue #32, the script started working again. But an attempt to resume an unfinished download, which normally should skip already downloaded videos, results in multiple errors.
Failed to establish a new connection: [WinError 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
A workaround was suggested by @mahasatwa to set a ''timeout' parameter for 'requests.get' on line 152.
response = requests.get(dl_url, allow_redirects=True, stream=True, timeout=15)
By setting a 30 seconds timeout, I got past this error and I was able to resume an unfinished download.
Originally posted by @mahasatwa in #32 (comment)