r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.86k stars 1.2k forks source link

Connection Error - HTTPSConnectionPool Max retries exceeded #465

Closed flkas closed 4 years ago

flkas commented 4 years ago

Describe the bug The bug is literally the same like #430 - excepting that it happens on all tested courses after some time.

To Reproduce Steps to reproduce the behavior:

  1. udemy course url: https://www.udemy.com/course/react-the-complete-guide-incl-redux/
  2. Run the following command to reproduce the error: python udemy-dl.py https://www.udemy.com/course/react-the-complete-guide-incl-redux/ --cache --skip-sub --unsafe
  3. See error: ConnectionError: HTTPSConnectionPool(host='a2.udemycdn.com', port=443): Max retries exceeded with url: /2017-[...]HD_720p.mp4?nva=[...]020ede2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x10c2e5190>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))

Expected behavior The expected behavior would be a smooth download of all assets and video files from the course.

Screenshots error

I tried with and without --unsafe - same result both times

Python Environment (please complete the following information):

r0oth3x49 commented 4 years ago

the error is more specific to requests/urllib then udemy-dl, but will look for solution, most of the time it happens in Mac only not any other OS.

Eliteneet commented 4 years ago

I'm still having this happen on the latest version of udemy-dl

Deviad commented 4 years ago

I have this too. Could it be because of some kind of throttling?

ronnicek commented 3 years ago

Just hit it as well.. on CentOS 7 in virtualenv

r0oth3x49 commented 3 years ago

@ronnicek wait for some time and then try again there is no way i can fix this but urllib3/requests

ronnicek commented 3 years ago

@r0oth3x49 I actually had it yesterday a lot.. now it looks ok (there are errors time to time, but only single ones, not half of the course) :) Thanks! :)

r0oth3x49 commented 3 years ago

great so the solution is to wait at least a day :P .