Error logging in?
Please review the Troubleshooting section before reporting any issue. Don't forget to check also the current issues to avoid duplicates.
Subject of the issue
Describe your issue here.
Error logging in. I have checked the user name and password.
Your environment
- Operating System (name/version): Windows 11 Pro/24H2
- Python version: 3.10.13
- coursera-dl version: 0.11.5
Steps to reproduce
Tell us how to reproduce this issue, please don't forget to include enough information so that you can help us help you:
I'm running the line: coursera-dl -u [email protected] -p *********** microsoft-365-copilot
- Is the problem happening with the latest version of the script? Yes
- Do you have all the recommended versions of the modules? See them in the
file
requirements.txt. Yes - What is the course that you are trying to access? microsoft-365-copilot
- What is the precise command line that you are using (don't forget to obfuscate your username and password, but leave all other information untouched).
coursera-dl -u [email protected] -p *********** microsoft-365-copilot
- What are the precise messages that you get? Please, use the
--debugoption before posting the messages as a bug report. Please, copy and paste them. Don't reword/paraphrase the messages.
root[main] coursera_dl version 0.11.5 root[login] Initiating login. root[login] There were no .coursera.org cookies to be cleared. root[prepare_auth_headers] Forging cookie header: csrftoken=O1EpubuWwzmrssckhgE6; csrf2_token_iL7YDFON=K4CxdcbbdQtRh99dy48ENLkW. urllib3.connectionpool[_new_conn] Starting new HTTPS connection (1): api.coursera.org:443 urllib3.connectionpool[_make_request] https://api.coursera.org:443 "POST /api/login/v3 HTTP/11" 400 None Traceback (most recent call last): File "C:\Anaconda\lib\site-packages\coursera\cookies.py", line 148, in login r.raise_for_status() File "C:\Anaconda\lib\site-packages\requests\models.py", line 1024, 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 "C:\Anaconda\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Anaconda\lib\runpy.py", line 86, in run_code exec(code, run_globals) File "C:\Anaconda\Scripts\coursera-dl.exe_main.py", line 7, in File "C:\Anaconda\lib\site-packages\coursera\coursera_dl.py", line 239, in main login(session, args.username, args.password) File "C:\Anaconda\lib\site-packages\coursera\cookies.py", line 155, in login raise AuthenticationFailed('Cannot login on coursera.org: %s' % e)
Expected behaviour
Tell us what should happen.
It should download the files
Actual behaviour
Tell us what happens instead. If the script fails, please copy the entire output of the command or the stacktrace (don't forget to obfuscate your username and password). If you cannot copy the exception, attach a screenshot.
I get the error message above
Source: coursera-dl/coursera-dl