Xqt added a subscriber: Nikerabbit.
Xqt added a comment.
The underlying problem in Windows environment is:
/w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=5&format=json,
action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=5&format=json
Traceback (most recent call last):
File "D:\a\pywikibot\pywikibot\pywikibot\data\api\_requests.py", line
694, in _http_request
response = http.request(self.site, uri=uri,
File "D:\a\pywikibot\pywikibot\pywikibot\comms\http.py", line 288, in
request
r = fetch(baseuri, headers=headers, **kwargs)
File "D:\a\pywikibot\pywikibot\pywikibot\comms\http.py", line 460, in
fetch
callback(response)
File "D:\a\pywikibot\pywikibot\pywikibot\comms\http.py", line 336, in
error_handling_callback
raise ServerError(response)
pywikibot.exceptions.ServerError:
HTTPSConnectionPool(host='translatewiki.net', 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 ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at
0x01599BE0>, 'Connection to translatewiki.net timed out. (connect
timeout=6.05)'))
The error handling callback is:
# catch requests.ReadTimeout and requests.ConnectTimeout and convert
# it to ServerError
if isinstance(response, requests.Timeout):
raise ServerError(response)
Tests runs without any problems locally
TASK DETAIL
https://phabricator.wikimedia.org/T403292
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]