Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplejson.errors.JSONDecodeError in /openqa_review/openqa_review.py line 689, in __init__ self.json = progress_browser.get_json(self.bugref_href + ".json")["issue"] #159

Open
okurz opened this issue Jun 28, 2021 · 0 comments
Assignees

Comments

@okurz
Copy link
Member

okurz commented Jun 28, 2021

Observation

From openqa_review/bin/openqa-review-daily-email, like from openqa.suse.de:

Traceback (most recent call last):
  File "/usr/bin/openqa-review", line 11, in <module>
    load_entry_point('openqa-review==0.0.0', 'console_scripts', 'openqa-review')()
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 1518, in main
    report = generate_report(args)
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 1449, in generate_report
    return Report(browser, args, root_url, job_groups)
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 1405, in __init__
    self.report[k] = self._one_report(v)
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 1416, in _one_report
    return ProductReport(self.browser, job_group_url, self.root_url, self.args)
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 1142, in __init__
    self.reports[arch] = ArchReport(arch, results, args, root_url, progress_browser, bugzilla_browser, browser)
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 909, in __init__
    self.bugzilla_browser,
  File "/usr/lib/python3.6/site-packages/openqa_review/openqa_review.py", line 689, in __init__
    self.json = progress_browser.get_json(self.bugref_href + ".json")["issue"]
  File "/usr/lib/python3.6/site-packages/openqa_review/browser.py", line 75, in get_json
    return self.get_page(url, as_json=True, cache=cache)
  File "/usr/lib/python3.6/site-packages/openqa_review/browser.py", line 102, in get_page
    content = self._get(absolute_url, as_json=as_json)
  File "/usr/lib/python3.6/site-packages/openqa_review/browser.py", line 147, in _get
    content = r.json() if as_json else r.content.decode("utf8")
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib64/python3.6/site-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib64/python3.6/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

No expected result

No error report in traceback. In case a single bug report can not be read, record with a "info" log message, not more severe, and add the corresponding info in the report and skip

@kalikiana kalikiana self-assigned this Jun 29, 2021
@perlpunk perlpunk changed the title implejson.errors.JSONDecodeError in /openqa_review/openqa_review.py line 689, in __init__ self.json = progress_browser.get_json(self.bugref_href + ".json")["issue"] simplejson.errors.JSONDecodeError in /openqa_review/openqa_review.py line 689, in __init__ self.json = progress_browser.get_json(self.bugref_href + ".json")["issue"] Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants