HelloZeroNet / HelloZeroNet/ZeroNet

The error "ValueError: No JSON object could be decoded" should say what the object is

オープン
#1,080 コメント 8 件 リアクション 2 件 担当者 1 名 GitHub で見る

@shortcutme がすでに取り組んでいます。

2017年8月18日 から。

bug
主要言語
JavaScript
スター
18.8k
フォーク
2.3k
PR マージ指標
30日以内にマージされた PR はありません

説明

Is it an invalid file, or something received from the network? Which site does it relate to?

Currently, the error is:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/gevent/greenlet.py", line 536, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/share/zeronet/src/Site/Site.py", line 402, in update
    file_info = self.content_manager.getFileInfo(bad_file)
  File "/usr/local/share/zeronet/src/Content/ContentManager.py", line 319, in getFileInfo
    content = self.contents.get(content_inner_path.strip("/"))
  File "/usr/local/share/zeronet/src/Content/ContentDbDict.py", line 105, in get
    return self.__getitem__(key)
  File "/usr/local/share/zeronet/src/Content/ContentDbDict.py", line 55, in __getitem__
    return self.loadItem(key)
  File "/usr/local/share/zeronet/src/Content/ContentDbDict.py", line 23, in loadItem
    content = self.site.storage.loadJson(key)
  File "/usr/local/share/zeronet/src/Site/SiteStorage.py", line 254, in loadJson
    return json.load(file)
  File "/usr/local/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/usr/local/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。