HelloZeroNet / HelloZeroNet/ZeroNet

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

Aperta
#1,080 8 commenti 2 reazioni 1 assegnatario Rivendicata da @shortcutme Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
18.8k
Fork
2.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.