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

[Bug]: sudden interruption

Open sebbu2 opened this issue 8 months ago • 2 comments

What happened?

I disabled discudemy due to timeouts, but then i retrieved all other 8 sites, found 2068 courses , and then :

╭───────────────────────┬──────────╮
│ Stat                  │ Value    │
├───────────────────────┼──────────┤
│ Successfully Enrolled │ 7        │
│ Amount Saved          │ 0.00 EUR │
│ Already Enrolled      │ 715      │
│ Excluded Courses      │ 57       │
│ Expired Courses       │ 50       │
╰───────────────────────┴──────────╯

Which totals far less than 2068. Why did it suddenly stop without any error output ?

Enroller

CLI

OS

Windows

Log file duce.log

2025-04-24 14:17:12.161 | INFO     | base:start_new_enroll:1217 - Processing course 859 / 2068: QuickBooks Pro Desktop 2019 tracks more of our year-end tax needs in one QuickBooks file by using tax tracking methods - https://www.udemy.com/course/quickbooks-desktop-pro-2019-personal-tax-tracking-tricks/?couponCode=A42826C0DAB5C64DBEDF
2025-04-24 14:17:17.650 | INFO     | base:start_new_enroll:1262 - Added for enrollment
2025-04-24 14:17:17.651 | INFO     | base:bulk_checkout:1281 - Enrolling in courses...
2025-04-24 14:18:27.574 | ERROR    | base:bulk_checkout:1365 - {'status': 'failed', 'message': "We couldn't complete this purchase. Please try again.", 'developer_message': None, 'failure_reason': None, 'data': {'return_url': '/payment/checkout/'}}
2025-04-24 14:18:27.574 | ERROR    | base:bulk_checkout:1366 - {'checkout_environment': 'Marketplace', 'checkout_event': 'Submit', 'payment_info': {'method_id': '0', 'payment_method': 'free-method', 'payment_vendor': 'Free'}, 'shopping_info': {'items': [{'buyable': {'id': '6583467', 'type': 'course'}, 'discountInfo': {'code': '0FC9518C39CB4634EB48'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6582269', 'type': 'course'}, 'discountInfo': {'code': 'KIEN_6582269_OPEN_0'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6575429', 'type': 'course'}, 'discountInfo': {'code': '8133B27C2D21D4A5FEEC'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6583027', 'type': 'course'}, 'discountInfo': {'code': '86380F5A6C63EC6814F5'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5655956', 'type': 'course'}, 'discountInfo': {'code': '4BB72E930442D2D7DB14'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6296467', 'type': 'course'}, 'discountInfo': {'code': '0D1FF4C4665ECCC70C09'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5434312', 'type': 'course'}, 'discountInfo': {'code': '5C1EF831181BB4CBEBD8'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6582873', 'type': 'course'}, 'discountInfo': {'code': '6B87354170A0C665BEFA'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5126654', 'type': 'course'}, 'discountInfo': {'code': 'AB08DEF47CD99FF759C9'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '3646663', 'type': 'course'}, 'discountInfo': {'code': 'F06462C7678879A93CC2'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6494887', 'type': 'course'}, 'discountInfo': {'code': '170ACED011ABB482524F'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6214041', 'type': 'course'}, 'discountInfo': {'code': '5C577C65FCB3BF06A72B'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6516331', 'type': 'course'}, 'discountInfo': {'code': 'ALLGOODINTHEHOOD'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5724096', 'type': 'course'}, 'discountInfo': {'code': '2AF67141381C249D42F2'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6571889', 'type': 'course'}, 'discountInfo': {'code': 'KIEN_6571889_OPEN0'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6217981', 'type': 'course'}, 'discountInfo': {'code': 'D642ECA31C90A5253B25'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5655684', 'type': 'course'}, 'discountInfo': {'code': '642ED41B361D4D9B6CCE'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6577831', 'type': 'course'}, 'discountInfo': {'code': 'MIKE04_PLUS6577831'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6543197', 'type': 'course'}, 'discountInfo': {'code': '720D9162AFCD18753E47'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5350674', 'type': 'course'}, 'discountInfo': {'code': 'A33949B94C98287D1A7B'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5597324', 'type': 'course'}, 'discountInfo': {'code': '1774E01D10605A6EAED4'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6292479', 'type': 'course'}, 'discountInfo': {'code': '4D67AC1E3225992AA829'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6375549', 'type': 'course'}, 'discountInfo': {'code': '9A18B90E0DFFAA1D4FDC'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6577831', 'type': 'course'}, 'discountInfo': {'code': 'MIKE04_PLUS6577831'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6582309', 'type': 'course'}, 'discountInfo': {'code': 'GENAIFREE'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6413609', 'type': 'course'}, 'discountInfo': {'code': 'C9D2AA04EA08D56ABC4A'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6384633', 'type': 'course'}, 'discountInfo': {'code': '2F98134A9AADE6A423AF'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '6207737', 'type': 'course'}, 'discountInfo': {'code': '364C128370ADB499FB8A'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '5596902', 'type': 'course'}, 'discountInfo': {'code': '3D1A337C150E444B9A01'}, 'price': {'amount': 0, 'currency': 'EUR'}}, {'buyable': {'id': '2008730', 'type': 'course'}, 'discountInfo': {'code': 'A42826C0DAB5C64DBEDF'}, 'price': {'amount': 0, 'currency': 'EUR'}}], 'is_cart': False}}
2025-04-24 14:18:27.575 | ERROR    | __main__:handle_error:28 - ERROR: An unexpected error occurred
2025-04-24 14:18:27.583 | ERROR    | __main__:handle_error:48 - An unexpected error occurred - Details: Bulk checkout failed
Traceback (most recent call last):

> File "cli.py", line 312, in <module>

  File "base.py", line 1265, in start_new_enroll
    self.bulk_checkout()
    │    └ <function Udemy.bulk_checkout at 0x00000197C1871C60>
    └ <base.Udemy object at 0x00000197C185B350>

  File "base.py", line 1367, in bulk_checkout
    raise Exception("Bulk checkout failed")

Exception: Bulk checkout failed

Terms

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

sebbu2 avatar Apr 24 '25 12:04 sebbu2

This is known and being worked on actively. Will push an update ASAP as soon as I get a solution

techtanic avatar Apr 24 '25 15:04 techtanic

any fix or updates !

TareqAbAmawi avatar May 24 '25 22:05 TareqAbAmawi