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

JSON decode error in the log #7297

Closed
ichorid opened this issue Feb 20, 2023 · 0 comments · Fixed by #7298
Closed

JSON decode error in the log #7297

ichorid opened this issue Feb 20, 2023 · 0 comments · Fixed by #7298
Assignees
Milestone

Comments

@ichorid
Copy link
Contributor

ichorid commented Feb 20, 2023

Latest main (3e5f265)

A JSONDecodeError appears in the log:

[tribler-core PID:1711190] 2023-02-20 17:26:43,156 - WARNING - TorrentChecker(157) - http tracker failed for url http://tracker....announce.php (error: Server disconnected)
[tribler-gui PID:1711138] 2023-02-20 17:26:43,739 - INFO - StartDownloadDialog(276) - Download folder: /home/tribler_user/...
[tribler-gui PID:1711138] 2023-02-20 17:26:43,739 - INFO - RequestManager(123) - Request: PUT http://localhost:52194/downloads
[tribler-gui PID:1711138] 2023-02-20 17:26:43,740 - WARNING - Request(125) - Request was canceled: GET http://localhost:52194/torrentinfo?uri=magnet...&hops=0
[tribler-gui PID:1711138] 2023-02-20 17:26:43,740 - INFO - Request(94) - Finished: GET http://localhost:52194/torrentinfo?uri=magnet...&hops=0
[tribler-gui PID:1711138] 2023-02-20 17:26:43,751 - WARNING - Request(125) - Request was canceled: GET http://localhost:52194/torrentinfo?uri=magnet...&hops=0
QIODevice::read (QNetworkReplyHttpImpl): device not open
[tribler-gui PID:1711138] 2023-02-20 17:26:43,740 - ERROR <request:115> Request._on_finished(): Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/home/tribler_user/tribler/gui/network/request.py", line 107, in _on_finished
    result = json.loads(data)
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants