XDM
XDM copied to clipboard
Logging page error
Sometime, just after I add a movie, I have an error when I go in the "Logging" window.
Waiting a few seconds and refresh works.
500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File "/home/tartine/.xdm/XDM/rootLibs/cherrypy/_cprequest.py", line 656, in respond response.body = self.handler() File "/home/tartine/.xdm/XDM/rootLibs/cherrypy/lib/encoding.py", line 188, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/home/tartine/.xdm/XDM/rootLibs/cherrypy/_cpdispatch.py", line 34, in __call__ return self.callable(*self.args, **self.kwargs) File "/home/tartine/.xdm/XDM/xdm/web/__init__.py", line 295, in log for _log in log.getEntries(entries): File "/home/tartine/.xdm/XDM/xdm/logger.py", line 180, in getEntries return [{'data': json.loads(l), 'raw': json.dumps(json.loads(l), indent=4), 'id': 'AA%s' % hash(l)} for l in logLinesStr] File "/usr/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded Powered by CherryPy 3.2.2
yes the logger page is quite hacked to get the last lines from the log file i also see this some times.... this is a proper bug