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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled getting page https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled The server replied: {"errorCode":"Not Authorized","message":null,"details":null} #836

Open
tazheeb-shamsi opened this issue Nov 2, 2022 · 7 comments

Comments

@tazheeb-shamsi
Copy link

tazheeb-shamsi commented Nov 2, 2022

馃毃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.

Your environment

  • Operating System (name/version): win 11
  • Python version: 3.8.5
  • 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:

  • Is the problem happening with the latest version of the script?
  • Do you have all the recommended versions of the modules? See them in the
    file requirements.txt.
  • What is the course that you are trying to access? --> unix
  • 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).
  • 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.

Actual behaviour (ERROR: HTTPError 403)

coursera_dl version 0.11.5
Downloading class: unix (1 / 1)
Parsing syllabus of on-demand course (id=d7GXFfqfEeadFw6-eqmrIg). This may take some time, please be patient ...
Error 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled getting page https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled
The server replied: {"errorCode":"Not Authorized","message":null,"details":null}
HTTPError 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled

@olawalejuwonm
Copy link

Did you add cauth?

@tazheeb-shamsi
Copy link
Author

tazheeb-shamsi commented Nov 5, 2022

yes..
--user
--password
--cauth
etc in config file

@loky777
Copy link

loky777 commented Nov 5, 2022

i have the same issue searching for solution but have not found yet

@ahmmishkat
Copy link

same issue

@loky777
Copy link

loky777 commented Nov 24, 2022

@ahmmishkat the solution is described in this link : #834 (comment)

@domvdp
Copy link

domvdp commented Dec 7, 2022

I encountered this 403 error, so just wanted to share what I was doing wrong, and what the solution was in case it helps:

Problem: I didn't copy and paste the CAUTH correctly - it turned out that I was only copying and pasting a slice of the CAUTH because it wasn't being fully displayed under the cookies section.

Solution: Double check that you are copying the entire CAUTH

@benhadad
Copy link

benhadad commented May 5, 2023

Thank you for this, I had left off 1 character and got this error.. Now I return back to the previous error I had.

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

6 participants