Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Logging page error #73

Open
Torf opened this issue Oct 2, 2013 · 1 comment
Open

Logging page error #73

Torf opened this issue Oct 2, 2013 · 1 comment
Labels

Comments

@Torf
Copy link
Contributor

Torf commented Oct 2, 2013

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
@lad1337
Copy link
Owner

lad1337 commented Oct 2, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants