| Summary: |
AB-INT: cve-update-nvd2: JSONDecodeError |
| Product: |
[QA/Testing] Test Plans/Suite
|
Reporter: |
Mathieu Dubois-Briand <mathieu.dubois-briand> |
| Component: |
test-plans/suite | Assignee: |
Unassigned <unassigned> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Undecided
|
CC: |
ccasciato, richard.purdie
|
| Version: |
unspecified | |
|
| Target Milestone: |
0.0.0 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
AB-INT |
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
Probably an error on the remote db, we had failures on two workers, roughly at the same time, and error is gone on rebuild. ERROR: cve-update-nvd2-native-1.0-r0 do_fetch: Error executing a python function in exec_func_python() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_func_python() autogenerated', lineno: 2, function: <module> 0001: *** 0002:do_fetch(d) 0003: File: '/srv/pokybuild/yocto-worker/metrics/build/meta/recipes-core/meta/cve-update-nvd2-native.bb', lineno: 83, function: do_fetch 0079: bb.utils.mkdirhier(db_dir) 0080: if os.path.exists(db_file): 0081: shutil.copy2(db_file, db_tmp_file) 0082: *** 0083: if update_db_file(db_tmp_file, d, database_time) == True: 0084: # Update downloaded correctly, can swap files 0085: shutil.move(db_tmp_file, db_file) 0086: else: 0087: # Update failed, do not modify the database File: '/srv/pokybuild/yocto-worker/metrics/build/meta/recipes-core/meta/cve-update-nvd2-native.bb', lineno: 219, function: update_db_file 0215: if raw_data is None: 0216: # We haven't managed to download data 0217: return False 0218: *** 0219: data = json.loads(raw_data) 0220: 0221: index = data["startIndex"] 0222: total = data["totalResults"] 0223: per_page = data["resultsPerPage"] File: '/srv/pokybuild/yocto-worker/metrics/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/json/__init__.py', lineno: 346, function: loads 0342: 0343: if (cls is None and object_hook is None and 0344: parse_int is None and parse_float is None and 0345: parse_constant is None and object_pairs_hook is None and not kw): *** 0346: return _default_decoder.decode(s) 0347: if cls is None: 0348: cls = JSONDecoder 0349: if object_hook is not None: 0350: kw['object_hook'] = object_hook File: '/srv/pokybuild/yocto-worker/metrics/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/json/decoder.py', lineno: 337, function: decode 0333: """Return the Python representation of ``s`` (a ``str`` instance 0334: containing a JSON document). 0335: 0336: """ *** 0337: obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 0338: end = _w(s, end).end() 0339: if end != len(s): 0340: raise JSONDecodeError("Extra data", s, end) 0341: return obj File: '/srv/pokybuild/yocto-worker/metrics/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/json/decoder.py', lineno: 355, function: raw_decode 0351: """ 0352: try: 0353: obj, end = self.scan_once(s, idx) 0354: except StopIteration as err: *** 0355: raise JSONDecodeError("Expecting value", s, err.value) from None 0356: return obj, end Exception: json.decoder.JSONDecodeError: Expecting value: line 1 column 2212228 (char 2212227)