Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score detail cannot be fetched #3

Open
PhotonQuantum opened this issue Jul 10, 2020 · 1 comment
Open

Score detail cannot be fetched #3

PhotonQuantum opened this issue Jul 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@PhotonQuantum
Copy link
Owner

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lightquantum/.local/lib/python3.8/site-packages/pysjtu/models/score.py", line 95, in detail
    self._detail = self._func_detail(self.year, self.term, self.class_id)
  File "/home/lightquantum/.local/lib/python3.8/site-packages/pysjtu/client/api/score.py", line 21, in _get_score_detail
    factors = schemas.ScoreFactorSchema(many=True).load(raw.json()["items"][:-1])  # type: ignore
  File "/home/lightquantum/.local/lib/python3.8/site-packages/httpx/models.py", line 856, in json
    return jsonlib.loads(self.text, **kwargs)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 7 column 1 (char 13)
@PhotonQuantum PhotonQuantum added the bug Something isn't working label Jul 10, 2020
@PhotonQuantum
Copy link
Owner Author

iSJTU system updated. Can't reproduce now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant