Bug 50775 - Traceback during appcenter/query: "ValueError: No JSON object could be decoded"
Traceback during appcenter/query: "ValueError: No JSON object could be decoded"
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-3-errata
Assigned To: Toni Röhmeyer
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-02-04 15:40 CET by Toni Röhmeyer
Modified: 2023-07-07 16:47 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.114
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020012721000442, 2022121921000755
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Röhmeyer univentionstaff 2020-02-04 15:40:49 CET
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
Comment 1 Toni Röhmeyer univentionstaff 2020-02-12 13:37:05 CET
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
Comment 2 Dirk Wiesenthal univentionstaff 2020-02-26 09:06:15 CET
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
Comment 3 Erik Damrose univentionstaff 2020-02-26 14:25:04 CET
<http://errata.software-univention.de/ucs/4.4/455.html>