| JSONDecodeError | Python 3.8.10: /usr/bin/python3 Wed Apr 22 09:10:30 2026 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /serv/HTTP/cgi-bin/SLiMAN2/all_results_table.py in <module> |
| 143 |
| 144 # Generate table |
| => 145 displayable_results = gen_results_table() |
| 146 |
| 147 # Send html page |
| displayable_results undefined, gen_results_table = <function gen_results_table> |
| /serv/HTTP/cgi-bin/SLiMAN2/all_results_table.py in gen_results_table() |
| 101 def gen_results_table(): |
| 102 # Get displayable results ids |
| => 103 disp_res_id = get_results_ids() |
| 104 |
| 105 # Initiate table |
| disp_res_id undefined, global get_results_ids = <function get_results_ids> |
| /serv/HTTP/cgi-bin/SLiMAN2/all_results_table.py in get_results_ids() |
| 82 try: |
| 83 with open(ucf) as f: |
| => 84 ucf_dt = json.load(f) |
| 85 # Unwished open access condition |
| 86 if ucf_dt["OPEN_ACCESS"] == False: |
| ucf_dt = {'API': False, 'Date': '2026-01-13 15h05', 'Entries': [['Q9UJV9', 'DDX41_HUMAN'], ['P61962', 'DCAF7_HUMAN'], ['P68400', 'CSK21_HUMAN'], ['Q9UQ35', 'SRRM2_HUMAN'], ['P19784', 'CSK22_HUMAN'], ['Q8NEV1', 'CSK23_HUMAN']], 'LastAccess': '2026-01-13 15h05', 'OPEN_ACCESS': False, 'PubMed': False, 'ReadOnly': False, 'UserDefinedClasses': [], 'UserID': 'Model-DDX41_g2dLR', 'ValidHits': [], ...}, global json = <module 'json' from '/usr/lib/python3.8/json/__init__.py'>, json.load = <function load>, f = <_io.TextIOWrapper name='/serv/HTTP/pages/SLIMAN...MAN_Query_Config.json' mode='r' encoding='UTF-8'> |
| /usr/lib/python3.8/json/__init__.py in load(fp=<_io.TextIOWrapper name='/serv/HTTP/pages/SLIMAN...MAN_Query_Config.json' mode='r' encoding='UTF-8'>, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw={}) |
| 291 kwarg; otherwise ``JSONDecoder`` is used. |
| 292 """ |
| => 293 return loads(fp.read(), |
| => 294 cls=cls, object_hook=object_hook, |
| => 295 parse_float=parse_float, parse_int=parse_int, |
| global loads = <function loads>, fp = <_io.TextIOWrapper name='/serv/HTTP/pages/SLIMAN...MAN_Query_Config.json' mode='r' encoding='UTF-8'>, fp.read = <built-in method read of _io.TextIOWrapper object>, cls = None, object_hook = None, parse_float = None, parse_int = None, parse_constant = None, object_pairs_hook = None, kw = {} |
| /usr/lib/python3.8/json/__init__.py in loads(s='', cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw={}) |
| 355 parse_int is None and parse_float is None and |
| 356 parse_constant is None and object_pairs_hook is None and not kw): |
| => 357 return _default_decoder.decode(s) |
| 358 if cls is None: |
| 359 cls = JSONDecoder |
| global _default_decoder = <json.decoder.JSONDecoder object>, _default_decoder.decode = <bound method JSONDecoder.decode of <json.decoder.JSONDecoder object>>, s = '' |
| /usr/lib/python3.8/json/decoder.py in decode(self=<json.decoder.JSONDecoder object>, s='', _w=<built-in method match of re.Pattern object>) |
| 335 |
| 336 """ |
| => 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) |
| 338 end = _w(s, end).end() |
| 339 if end != len(s): |
| obj undefined, end undefined, self = <json.decoder.JSONDecoder object>, self.raw_decode = <bound method JSONDecoder.raw_decode of <json.decoder.JSONDecoder object>>, s = '', idx undefined, _w = <built-in method match of re.Pattern object>, ).end undefined |
| /usr/lib/python3.8/json/decoder.py in raw_decode(self=<json.decoder.JSONDecoder object>, s='', idx=0) |
| 352 try: |
| 353 obj, end = self.scan_once(s, idx) |
| 354 except StopIteration as err: |
| => 355 raise JSONDecodeError("Expecting value", s, err.value) from None |
| 356 return obj, end |
| global JSONDecodeError = <class 'json.decoder.JSONDecodeError'>, s = '', err undefined |
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
args =
('Expecting value: line 1 column 1 (char 0)',)
colno =
1
doc =
''
lineno =
1
msg =
'Expecting value'
pos =
0
with_traceback =
<built-in method with_traceback of JSONDecodeError object>