Closed dreamxps closed 2 years ago
Hey @dreamxps,
I can't reproduce the issue. Here's POC of the lab being downloaded:
Can you please let me know with how many parallel processes (-p
) are you running the program? Or are you just downloading the single course?
In any case, try running this for the standalone course:
python3 ine.py -c ebd09929-68db-4691-a1a3-5be2c88be72d
Closing the issue as I can't reproduce it and the course downloads just fine.
I am getting error while downloading
`2022-08-28 11:01:31 | ERROR | An error has been caught in function '', process 'MainProcess' (1473), thread 'MainThread' (139833520949056):
Traceback (most recent call last):
File "ine.py", line 1080, in main download_course(course_dl) │ └ {'id': 'ebd09929-68db-4691-a1a3-5be2c88be72d', 'tags': ['Log4J'], 'images': {'main_image_url': 'https://courses.assets.ine.co... └ <function download_course at 0x7f2d8594e4c0>
File "ine.py", line 962, in download_course download_lab(name, content_uuid, complete_path, index) │ │ │ │ └ '35' │ │ │ └ 'Cyber Security Vulnerabilities Training Library/01 - Vulnerabilities/01 - Labs' │ │ └ '9e2d5941-0c0d-46bb-ab08-f2b0a2fcc6d2' │ └ 'Cyber Security Vulnerabilities Training Library' └ <function download_lab at 0x7f2d8594e430>
File "ine.py", line 876, in download_lab write_into_file(lab_file_json, "w+", json.dumps(lab_data, indent=4, default=str)) │ │ │ │ └ {'id': '9e2d5941-0c0d-46bb-ab08-f2b0a2fcc6d2', 'name': 'ForgeRock / OpenAM Jato Java Deserialization (CVE-2021-35464)', 'slug... │ │ │ └ <function dumps at 0x7f2d865a5700> │ │ └ <module 'json' from '/usr/lib/python3.8/json/init.py'> │ └ 'Cyber Security Vulnerabilities Training Library/01 - Vulnerabilities/01 - Labs/35 - ForgeRock / OpenAM Jato Java Deserializa... └ <function write_into_file at 0x7f2d87049ee0>
File "ine.py", line 34, in write_into_file with open(filename, method, encoding="utf-8") as f: │ └ 'w+' └ 'Cyber Security Vulnerabilities Training Library/01 - Vulnerabilities/01 - Labs/35 - ForgeRock / OpenAM Jato Java Deserializa...
FileNotFoundError: [Errno 2] No such file or directory: 'Cyber Security Vulnerabilities Training Library/01 - Vulnerabilities/01 - Labs/35 - ForgeRock / OpenAM Jato Java Deserialization (CVE-2021-35464)_lab.json'`