JSON ERROR
I'm facing this issue on running the command [coursera-dl -ca ]
Downloading class: introduction-to-ai (1 / 1) Parsing syllabus of on-demand course (id=mR7MlUaTEemuHQ4HpHozrA). This may take some time, please be patient ... Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\json_init_.py", line 357, in loads return _default_decoder.decode(s) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\Scripts\coursera-dl.exe_main.py", line 7, in File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\coursera_dl.py", line 247, in main error_occurred, completed = download_class( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\coursera_dl.py", line 214, in download_class return download_on_demand_class(session, args, class_name) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\coursera_dl.py", line 134, in download_on_demand_class error_occurred, modules = extractor.get_modules( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\extractors.py", line 53, in get_modules error_occurred, modules = self._parse_on_demand_syllabus( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\extractors.py", line 105, in _parse_on_demand_syllabus ondemand_material_items = OnDemandCourseMaterialItemsV1.create( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\api.py", line 318, in create dom = get_page(session, OPENCOURSE_ONDEMAND_COURSE_MATERIALS, File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\coursera\network.py", line 93, in get_page return reply.json() if json else reply.text File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
E:\coursera>
Source: coursera-dl/coursera-dl