Skip to content

raises JSONDecodeError #4

@tbrodbeck

Description

@tbrodbeck

Hey! is this still working? 😬

Throws this error:

~/B/n/s/STT studDP -c                                                                          9:24
[INFO]: Logging initialized
[INFO]: Loading KWallet
[INFO]: Loading SecretService
[INFO]: Loading Windows
[INFO]: Loading chainer
[INFO]: Loading macOS
[INFO]: Loading Gnome
[INFO]: Loading Google
[INFO]: Loading Windows (alt)
[INFO]: Loading file
[INFO]: Loading keyczar
[INFO]: Loading multi
[INFO]: Loading pyfs
[INFO]: Listing Courses...
Traceback (most recent call last):
  File "/usr/local/bin/studDP", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/studdp/studdp.py", line 82, in main
    courses = client.get_courses()
  File "/usr/local/lib/python3.7/site-packages/studdp/model.py", line 226, in get_courses
    courses = json.loads(self._get('/api/courses').text)["courses"]
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions