techtanic/Discounted-Udemy-Course-Enroller

[Bug]: Error In V2.0

Closed this issue · 8 comments

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 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

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

  • I am using the latest version available.
  • I agree to follow this project's Code of Conduct

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

Is it in the first enrolling or mid way

Is it in the first enrolling or mid way

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

image
And this issue happens in the mid way enrolling

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

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

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