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

Could not authenticate: Cannot login on coursera.org: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3 #670

Closed
jeet-parekh opened this Issue Jun 15, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@jeet-parekh
Copy link

jeet-parekh commented Jun 15, 2018

Subject of the issue

Running coursera-dl gives an error 400.

Your environment

  • Operating System (name/version): Windows 8.1
  • Python version: 3.6.5
  • coursera-dl version: 0.11.2

Steps to reproduce

I ran the command coursera-dl -u myusername -p mypassword machine-learning.

  • 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. I did a pip install.

  • What is the course that you are trying to access?
    machine-learning

  • 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 myusername -p mypassword machine-learning

  • What are the precise messages that you get? Please, use the --debug
    option 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.2
root[main] Downloading class: machine-learning (1 / 1)
root[download_class] Downloading new style (on demand) class machine-learning
root[login] Initiating login.
root[login] There were no .coursera.org cookies to be cleared.
root[prepape_auth_headers] Forging cookie header: csrftoken=rgrpC7s9fPPIdLTaWeGA; csrf2_token_doUFgKoj=G39Y5Rvw4XFBwlb8W8cN5SEM.
urllib3.connectionpool[_new_conn] Starting new HTTPS connection (1): api.coursera.org
urllib3.connectionpool[_make_request] https://api.coursera.org:443 "POST /api/login/v3 HTTP/1.1" 400 None
root[main] Could not authenticate: Cannot login on coursera.org: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3

Expected behaviour

There would be no errors and the course would download.

Actual behaviour

The output given above.

@jeet-parekh

This comment has been minimized.

Copy link
Author

jeet-parekh commented Jun 17, 2018

It worked when I used my email id as the user name.

@shyamsukhamit

This comment has been minimized.

Copy link

shyamsukhamit commented Feb 16, 2019

Subject of the issue

Running coursera-dl gives an error 400.

Your environment

  • Operating System (name/version): Windows 8.1
  • Python version: 3.6.5
  • coursera-dl version: 0.11.2

Steps to reproduce

I ran the command coursera-dl -u myusername -p mypassword machine-learning.

  • 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. I did a pip install.
  • What is the course that you are trying to access?
    machine-learning
  • 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 myusername -p mypassword machine-learning
  • What are the precise messages that you get? Please, use the --debug
    option 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.2
root[main] Downloading class: machine-learning (1 / 1)
root[download_class] Downloading new style (on demand) class machine-learning
root[login] Initiating login.
root[login] There were no .coursera.org cookies to be cleared.
root[prepape_auth_headers] Forging cookie header: csrftoken=rgrpC7s9fPPIdLTaWeGA; csrf2_token_doUFgKoj=G39Y5Rvw4XFBwlb8W8cN5SEM.
urllib3.connectionpool[_new_conn] Starting new HTTPS connection (1): api.coursera.org
urllib3.connectionpool[_make_request] https://api.coursera.org:443 "POST /api/login/v3 HTTP/1.1" 400 None
root[main] Could not authenticate: Cannot login on coursera.org: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3

Expected behaviour

There would be no errors and the course would download.

Actual behaviour

The output given above.

Does not work for me. It seems that API is disabled by coursera!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment