Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with coursera-dl: Error 400 Client Error: Bad Request #852

Open
Omar-Shams-98 opened this issue Jun 5, 2023 · 4 comments
Open

Issue with coursera-dl: Error 400 Client Error: Bad Request #852

Omar-Shams-98 opened this issue Jun 5, 2023 · 4 comments

Comments

@Omar-Shams-98
Copy link

When attempting to download the "learning-how-to-learn" course from Coursera, I executed the following command in the command prompt:

coursera-dl -u oshideo9805@gmail.com learning-how-to-learn

After entering my Coursera account password as prompted, I received the following error message:

`coursera_dl version 0.11.5
Traceback (most recent call last):
File "...coursera\cookies.py", line 148, in login
r.raise_for_status()
File "...requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "...coursera-dl.exe_main_.py", line 7, in
File "...coursera\coursera_dl.py", line 239, in main
login(session, args.username, args.password)
File "...coursera\cookies.py", line 155, in login
raise AuthenticationFailed('Cannot login on coursera.org: %s' % e)
coursera.cookies.AuthenticationFailed: Cannot login on coursera.org: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3`

I'm using Microsoft Windows version 10.0.19045.2965, and the coursera-dl version is 0.11.5. What can I do to solve this problem?

@ArbenP
Copy link

ArbenP commented Aug 1, 2023

I am also getting that error, also on windows 10, with my command being coursera-dl -u MAIL@outlook.com -p MYPASSWORD foundations-of-cybersecurity

@ArbenP
Copy link

ArbenP commented Aug 1, 2023

I resolved the issue by switching to this fork: https://github.com/raffaem/cs-dlp works perfectly

@port19x
Copy link

port19x commented Aug 21, 2023

Also having the issue

@AFirooz
Copy link

AFirooz commented Nov 27, 2023

Fork solved my problem too, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants