techtanic / Discounted-Udemy-Course-Enroller

A script/software for automatically enrolling/joining 100% discounted Udemy courses for free. Get Paid Udemy courses for free with just a few clicks.
https://duce.techtanic.space
MIT License
785 stars 227 forks source link

[Bug]: Error In V2.0 #148

Closed TareqAbAmawi closed 2 months ago

TareqAbAmawi commented 1 year ago

What happened?

Show This Error :

Traceback (most recent call last): File "urllib3\connectionpool.py", line 703, in urlopen File "urllib3\connectionpool.py", line 386, in _make_request File "urllib3\connectionpool.py", line 1042, in _validateconn File "urllib3\connection.py", line 419, in connect File "urllib3\util\ssl.py", line 449, in ssl_wrapsocket File "urllib3\util\ssl.py", line 493, in _ssl_wrap_socket_impl File "cloudscraper__init__.py", line 100, in wrap_socket File "ssl.py", line 512, in wrap_socket File "ssl.py", line 1070, in _create File "ssl.py", line 1341, in do_handshake ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "requests\adapters.py", line 487, in send File "urllib3\connectionpool.py", line 787, in urlopen File "urllib3\util\retry.py", line 550, in increment File "urllib3\packages\six.py", line 769, in reraise File "urllib3\connectionpool.py", line 703, in urlopen File "urllib3\connectionpool.py", line 386, in _make_request File "urllib3\connectionpool.py", line 1042, in _validateconn File "urllib3\connection.py", line 419, in connect File "urllib3\util\ssl.py", line 449, in ssl_wrapsocket File "urllib3\util\ssl.py", line 493, in _ssl_wrap_socket_impl File "cloudscraper__init__.py", line 100, in wrap_socket File "ssl.py", line 512, in wrap_socket File "ssl.py", line 1070, in _create File "ssl.py", line 1341, in do_handshake urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "gui.py", line 96, in scrape File "base.py", line 745, in enrol course_id, self.link = self.get_course_id(self.link) File "base.py", line 368, in get_course_id r = cloudscraper.CloudScraper().get(url) File "requests\sessions.py", line 600, in get File "cloudscraper__init.py", line 259, in request File "cloudscraper\init__.py", line 192, in perform_request File "requests\sessions.py", line 587, in request File "requests\sessions.py", line 701, in send File "requests\adapters.py", line 502, in send requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

https://www.udemy.com/course/best-crunchy-pizza/?couponCode=A0DE621971162BAB6FAE The Crispy Pizza: Secrets to Making Crunchy Pizza Every Time

Enroller

GUI

OS

Windows

Relevant log output

Traceback (most recent call last):
  File "urllib3\connectionpool.py", line 703, in urlopen
  File "urllib3\connectionpool.py", line 386, in _make_request
  File "urllib3\connectionpool.py", line 1042, in _validate_conn
  File "urllib3\connection.py", line 419, in connect
  File "urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
  File "urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
  File "cloudscraper\__init__.py", line 100, in wrap_socket
  File "ssl.py", line 512, in wrap_socket
  File "ssl.py", line 1070, in _create
  File "ssl.py", line 1341, in do_handshake
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests\adapters.py", line 487, in send
  File "urllib3\connectionpool.py", line 787, in urlopen
  File "urllib3\util\retry.py", line 550, in increment
  File "urllib3\packages\six.py", line 769, in reraise
  File "urllib3\connectionpool.py", line 703, in urlopen
  File "urllib3\connectionpool.py", line 386, in _make_request
  File "urllib3\connectionpool.py", line 1042, in _validate_conn
  File "urllib3\connection.py", line 419, in connect
  File "urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
  File "urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
  File "cloudscraper\__init__.py", line 100, in wrap_socket
  File "ssl.py", line 512, in wrap_socket
  File "ssl.py", line 1070, in _create
  File "ssl.py", line 1341, in do_handshake
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "gui.py", line 96, in scrape
  File "base.py", line 745, in enrol
    course_id, self.link = self.get_course_id(self.link)
  File "base.py", line 368, in get_course_id
    r = cloudscraper.CloudScraper().get(url)
  File "requests\sessions.py", line 600, in get
  File "cloudscraper\__init__.py", line 259, in request
  File "cloudscraper\__init__.py", line 192, in perform_request
  File "requests\sessions.py", line 587, in request
  File "requests\sessions.py", line 701, in send
  File "requests\adapters.py", line 502, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

https://www.udemy.com/course/best-crunchy-pizza/?couponCode=A0DE621971162BAB6FAE
The Crispy Pizza: Secrets to Making Crunchy Pizza Every Time

Terms

TareqAbAmawi commented 1 year ago

2023-05-15 04_08_24-

TareqAbAmawi commented 1 year ago

+++++++++++++++++++ A N Y - U P D A T E ? +++++++++++++++++++

techtanic commented 1 year ago

Is it in the first enrolling or mid way

zenkidono commented 1 year ago

Is it in the first enrolling or mid way

I meet the same issue. For me, it happens for the first one.

zenkidono commented 1 year ago

image And this issue happens in the mid way enrolling

malikabdulhayee7 commented 1 year ago

image

cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

https://www.udemy.com/course/fundamentals-of-az-104-exam-with-hands-on-lab/?couponCode=DISCUDEMY.COM A Step-by-Step Guide to Azure Administration for Beginner's

TareqAbAmawi commented 1 year ago

The problem still exists and the number of courses is much less than before !

stwillocks commented 1 year ago

similar here with another course:

resim

Traceback (most recent call last):
  File "urllib3\connection.py", line 174, in _new_conn
  File "urllib3\util\connection.py", line 72, in create_connection
  File "socket.py", line 955, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "urllib3\connectionpool.py", line 703, in urlopen
  File "urllib3\connectionpool.py", line 386, in _make_request
  File "urllib3\connectionpool.py", line 1042, in _validate_conn
  File "urllib3\connection.py", line 363, in connect
  File "urllib3\connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x00000185B87B3D60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests\adapters.py", line 487, in send
  File "urllib3\connectionpool.py", line 787, in urlopen
  File "urllib3\util\retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.https', port=443): Max retries exceeded with url: //www.udemy.com/course/oracle-primavera-p6-project-planning-and-scheduling-training/?couponCode=FDBC826B39883E3B3EE6.com/course/oracle-primavera-p6-project-planning-and-scheduling-training/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000185B87B3D60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "gui.py", line 96, in scrape
  File "base.py", line 745, in enrol
    course_id, self.link = self.get_course_id(self.link)
  File "base.py", line 368, in get_course_id
    r = cloudscraper.CloudScraper().get(url)
  File "requests\sessions.py", line 600, in get
  File "cloudscraper\__init__.py", line 259, in request
  File "cloudscraper\__init__.py", line 192, in perform_request
  File "requests\sessions.py", line 587, in request
  File "requests\sessions.py", line 701, in send
  File "requests\adapters.py", line 520, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.https', port=443): Max retries exceeded with url: //www.udemy.com/course/oracle-primavera-p6-project-planning-and-scheduling-training/?couponCode=FDBC826B39883E3B3EE6.com/course/oracle-primavera-p6-project-planning-and-scheduling-training/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000185B87B3D60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

https://www.https://www.udemy.com/course/oracle-primavera-p6-project-planning-and-scheduling-training/?couponCode=FDBC826B39883E3B3EE6.com/course/oracle-primavera-p6-project-planning-and-scheduling-training/
Primavera P6 Training – For Beginners