Univention Bugzilla – Bug 50775
Traceback during appcenter/query: "ValueError: No JSON object could be decoded"
Last modified: 2023-07-07 16:47:04 CEST
Traceback(d41d8cd98f00b204e9800998ecf8427e): Internal server error during "appcenter/query". Request: appcenter/query Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/appcenter/__init__.py", line 242, in query return json.load(fd) File "/usr/lib/python2.7/json/__init__.py", line 291, in load **kw) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/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
Produced error will now be handled. Solution was pushed on branch 4.4-3 with the commits commit 19750929c2aec4b95a7d51614fb5147964224f17 Bug #50775: Added yaml commit 7ef5d6a6a67bd62bf1014de990a10af5827fc401 Bug #50775: Added exception on cached query error
Test was: echo hallo > /var/cache/univention-appcenter/umc-query.json Log was: Error returning cached query: No JSON object could be decoded Result was: Longer waiting time, but the Apps were eventually shown (=> could be improved in another bug) YAML: OK
<http://errata.software-univention.de/ucs/4.4/455.html>