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
820 stars 237 forks source link

[Bug]: Multi-Factor Authentication Issue (I think) #179

Open kohakunashi opened 3 weeks ago

kohakunashi commented 3 weeks ago

What happened?

A few days ago I was using it normally, until yesterday, when I logged in manually, it showed an error message. At the same time, Udemy sent the 6-digit verification code to my email even though I did not enable Multi-factor Authentication in the settings.

Enroller

GUI

OS

Windows

Relevant log output

Traceback (most recent call last):
  File "gui.py", line 245, in <module>
  File "base.py", line 583, in manual_login
    r.cookies["client_id"], r.cookies["access_token"], csrf_token
    ~~~~~~~~~^^^^^^^^^^^^^
  File "requests\cookies.py", line 334, in __getitem__
  File "requests\cookies.py", line 413, in _find_no_duplicates
KeyError: "name='client_id', domain=None, path=None"

Terms

techtanic commented 3 weeks ago

Hello, Can you try v2.3

Alternatively, You could also login to your Udemy account on your browser (Chrome, Edge, Firefox, Zen, Safari, Brave) And use auto login which would be easier. Hope it helps.

kohakunashi commented 3 weeks ago

Hello, Can you try v2.3

Alternatively, You could also login to your Udemy account on your browser (Chrome, Edge, Firefox, Zen, Safari, Brave) And use auto login which would be easier. Hope it helps.

Hi, I tried v2.3 but still have the same problem.

By the way, I switched to auto login with Edge browser and it works (Firefox & Chrome don't). Thanks a lot for this project.

techtanic commented 3 weeks ago

It's strange that manual login isn’t working. Could you try enabling and disabling MFA to see if that resolves the issue?

techtanic commented 3 weeks ago

Auto-login should work on both Firefox and Chrome. Try logging out of Udemy on all browsers, then clear cookies for Udemy. After that, log in to Udemy only from your main browser (Firefox or Chrome), restart the browser, and test auto-login to see if the issue is resolved.