Page MenuHomePhabricator

AutoFamily cannot be created for infogalactic.com wiki due to outdated certificate
Closed, ResolvedPublic

Description

D:\pwb\GIT\core>pwb logentries_tests -v
tests: max_retries reduced from 15 to 1
setUpClass (__main__.TestLogentries) ... ERROR
setUpClass (__main__.TestLogentryParams) ... ERROR
setUpClass (__main__.TestSimpleLogentries) ... ERROR

======================================================================
ERROR: setUpClass (__main__.TestLogentries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\pwb\GIT\core\tests\aspects.py", line 460, in setUpClass
    super().setUpClass()
  File "D:\pwb\GIT\core\tests\aspects.py", line 927, in setUpClass
    data['site'] = Site(data['code'], data['family'],
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\__init__.py", line 243, in Site
    _sites[key] = interface(code=code, fam=fam, user=user)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 140, in __init__
    self.login(cookie_only=True)
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 400, in login
    if self.userinfo['name'] == self.user():
       ^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 668, in userinfo
    uidata = uirequest.submit()
             ^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 993, in submit
    response, use_get = self._http_request(use_get, uri, body, headers,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 684, in _http_request
    response = http.request(self.site, uri=uri,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 283, in request
    r = fetch(baseuri, headers=headers, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 457, in fetch
    callback(response)
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 322, in error_handling_callback
    raise FatalServerError(str(response))
pywikibot.exceptions.FatalServerError: HTTPSConnectionPool(host='infogalactic.com', port=443): Max retries exceeded with url: /w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=5&format=json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992)')))

======================================================================
ERROR: setUpClass (__main__.TestLogentryParams)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\pwb\GIT\core\tests\aspects.py", line 460, in setUpClass
    super().setUpClass()
  File "D:\pwb\GIT\core\tests\aspects.py", line 927, in setUpClass
    data['site'] = Site(data['code'], data['family'],
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\__init__.py", line 243, in Site
    _sites[key] = interface(code=code, fam=fam, user=user)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 140, in __init__
    self.login(cookie_only=True)
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 400, in login
    if self.userinfo['name'] == self.user():
       ^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 668, in userinfo
    uidata = uirequest.submit()
             ^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 993, in submit
    response, use_get = self._http_request(use_get, uri, body, headers,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 684, in _http_request
    response = http.request(self.site, uri=uri,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 283, in request
    r = fetch(baseuri, headers=headers, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 457, in fetch
    callback(response)
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 322, in error_handling_callback
    raise FatalServerError(str(response))
pywikibot.exceptions.FatalServerError: HTTPSConnectionPool(host='infogalactic.com', port=443): Max retries exceeded with url: /w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=5&format=json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992)')))

======================================================================
ERROR: setUpClass (__main__.TestSimpleLogentries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\pwb\GIT\core\tests\aspects.py", line 460, in setUpClass
    super().setUpClass()
  File "D:\pwb\GIT\core\tests\aspects.py", line 927, in setUpClass
    data['site'] = Site(data['code'], data['family'],
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\__init__.py", line 243, in Site
    _sites[key] = interface(code=code, fam=fam, user=user)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 140, in __init__
    self.login(cookie_only=True)
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 400, in login
    if self.userinfo['name'] == self.user():
       ^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\site\_apisite.py", line 668, in userinfo
    uidata = uirequest.submit()
             ^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 993, in submit
    response, use_get = self._http_request(use_get, uri, body, headers,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 684, in _http_request
    response = http.request(self.site, uri=uri,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 283, in request
    r = fetch(baseuri, headers=headers, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 457, in fetch
    callback(response)
  File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 322, in error_handling_callback
    raise FatalServerError(str(response))
pywikibot.exceptions.FatalServerError: HTTPSConnectionPool(host='infogalactic.com', port=443): Max retries exceeded with url: /w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=5&format=json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992)')))

----------------------------------------------------------------------
Ran 0 tests in 1.536s

FAILED (errors=3)

D:\pwb\GIT\core>

Event Timeline

Xqt triaged this task as High priority.Mar 3 2024, 3:18 PM

Change 1008106 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] Skip tests on innfogalactic.com

https://gerrit.wikimedia.org/r/1008106

Change 1008106 merged by jenkins-bot:

[pywikibot/core@master] [tests] Skip tests on infogalactic.com

https://gerrit.wikimedia.org/r/1008106

Xqt lowered the priority of this task from High to Medium.Mar 3 2024, 4:50 PM
Xqt claimed this task.
Xqt added a project: Upstream.

Solved upstream

Change 1008762 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] Revert "[tests] Skip tests on infogalactic.com"

https://gerrit.wikimedia.org/r/1008762

Change 1008762 merged by jenkins-bot:

[pywikibot/core@master] Revert "[tests] Skip tests on infogalactic.com"

https://gerrit.wikimedia.org/r/1008762