Discounted-Udemy-Course-Enroller icon indicating copy to clipboard operation
Discounted-Udemy-Course-Enroller copied to clipboard

[Bug]: Network Issues

Open sebbu2 opened this issue 1 year ago • 1 comments

What happened?

Tutorial Bar is offline, so when retrieving the list of free courses, it waits for an answers that never comes, effectively freezing it, and never start. I saw a timeout error once and it worked afterwards, but I couldn't reproduce it when retrying. It affects both CLI and GUI.

Enroller

CLI

OS

Windows

Relevant log output

C:\Users\sebbu> DUCE-CLI-windows.exe
Trying to login using Saved Email and Password
Logged in as Sébastien BURILLARD

Terms

  • [X] I am using the latest available version.

sebbu2 avatar Sep 21 '24 19:09 sebbu2

@techtanic When will be commit 7785d5a144f2ee5982b29fcb6f36eb83db84cac7 update released?

Anil86 avatar Oct 21 '24 04:10 Anil86

Hello, just simple uncheck TutorialBar that is going to work.

Asunnya avatar Oct 28 '24 19:10 Asunnya

^[141 / 624] Advanced Skill Test: Python Entry Level Exam (PCEP-30-02) https://www.udemy.com/course/advanced-skill-test-python-entry-level-exam-pcep-30-02-v4/?couponCode=2B4E0EDC004A3D934467 ('Error', 'Traceback (most recent call last):\n File "requests\\models.py", line 974, in json\n File "json\\__init__.py", line 346, in loads\n File "json\\decoder.py", line 337, in decode\n File "json\\decoder.py", line 355, in raw_decode\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "cli.py", line 94, in <module>\n File "base.py", line 887, in start_enrolling\n self.handle_course_enrollment()\n File "base.py", line 933, in handle_course_enrollment\n self.handle_discounted_course(course["course_id"])\n File "base.py", line 1023, in handle_discounted_course\n amount, coupon_valid = self.check_course(course_id, coupon_code)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "base.py", line 854, in check_course\n r = self.client.get(url).json()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "requests\\models.py", line 978, in json\nrequests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\n\nhttps://www.udemy.com/course/advanced-skill-test-python-entry-level-exam-pcep-30-02-v4/?couponCode=2B4E0EDC004A3D934467\nAdvanced Skill Test: Python Entry Level Exam (PCEP-30-02)|:|Unknown Error v2.3.1') Press Enter to exit...

^[505 / 627] Super 3bedoom SketchUp Pro From Basic To Advance Level https://www.udemy.com/course/super-3bedoom-sketchup-pro-from-basic-to-advance-level/?couponCode=B39D613759AA39CB8843 upstream connect error or disconnect/reset before headers. reset reason: connection termination Unknown Error: Report this to the developer ('Error', 'Traceback (most recent call last):\n File "cli.py", line 94, in <module>\n File "base.py", line 887, in start_enrolling\n self.handle_course_enrollment()\n File "base.py", line 933, in handle_course_enrollment\n self.handle_discounted_course(course["course_id"])\n File "base.py", line 1029, in handle_discounted_course\n self.process_coupon(course_id, coupon_code, amount)\n File "base.py", line 1036, in process_coupon\n if msg := checkout_response.get("detail"):\n ^^^^^^^^^^^^^^^^^^^^^\nAttributeError: \'Response\' object has no attribute \'get\'\n\n\nhttps://www.udemy.com/course/super-3bedoom-sketchup-pro-from-basic-to-advance-level/?couponCode=B39D613759AA39CB8843\nSuper 3bedoom SketchUp Pro From Basic To Advance Level|:|Unknown Error v2.3.1') Press Enter to exit...

It seems network issues still aren't fixed.

Also, when such error occurs, I'ld want to still see the results (Successfully Enrolled, Amount Saved, Already Enrolled, Excluded Courses, Expired Courses, and of course the number of courses that was left to query).

sebbu2 avatar Nov 11 '24 15:11 sebbu2