403 client error, Forbidden for URL
Author: zennyCreated Jan 7, 2020Updated Sep 2, 2025
Hi,
Got the same problem as in https://github.com/coursera-dl/coursera-dl/issues/723, even with the solution provided by @sc268 at https://github.com/coursera-dl/coursera-dl/issues/702#issuecomment-568228372 and @BadWindShield at https://github.com/coursera-dl/coursera-dl/issues/702#issuecomment-568918178.
The output error looks like the following>
/shared/projects/my-coursera/local/lib/python3.4/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
coursera_dl version 0.11.5
Downloading class: contemporary-art (1 / 1)
Parsing syllabus of on-demand course (id=eIuy3sp7Eem_qg46ES4SQA). 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,preEnrolledTried many a times if it works arbitrarily as @aspiringguru mentioned at https://github.com/coursera-dl/coursera-dl/issues/723#issuecomment-524112388, but no go in my case!
Any input?
Cheers,
Source: coursera-dl/coursera-dl