Skip to content

JSONDecodeError that I can't get around #96

@Spazzery

Description

@Spazzery

Firstly, thank you for creating this tool, I've used it in the past and it worked great!

However, I've been trying for an hour, with different downloads and executables and even managed to sign in into echo (previously I used my school environment that linked to Echo (must've created a token or something) that got access to the videos), but now, whatever I do, I get a JSONDecodeError. Maybe they've updated Echo360 recently or something? I can't tell what the issue is.

The error:

Retrieving echo360 Course Info... Traceback (most recent call last):
File "E:\Videos\Ülikool\echo360\echo360.py", line 7, in
sys.exit(main())
^^^^^^
File "E:\Videos\Ülikool\echo360\echo360\main.py", line 393, in main
downloader.download_all()
File "E:\Videos\Ülikool\echo360\echo360\downloader.py", line 346, in download_all
videos = self._course.get_videos().videos
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Videos\Ülikool\echo360\echo360\course.py", line 139, in get_videos
course_data_json = self._get_course_data()
^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Videos\Ülikool\echo360\echo360\course.py", line 216, in get_course_data
self.course_data = json.loads(json_str)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users<me>\AppData\Local\Programs\Python\Python311\Lib\json_init
.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users<me>\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users<me>\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions