Command line:
python pwb.py cosmetic_changes -newpages:1000 -lang:arz
Output:
ERROR: Traceback (most recent call last): File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", line 691, in _http_request response = http.request(self.site, uri=uri, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 285, in request r = fetch(baseuri, headers=headers, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 460, in fetch callback(response) File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 335, in error_handling_callback raise ServerError(response) pywikibot.exceptions.ServerError: HTTPConnectionPool(host='wikispot.org', port=80): Max retries exceeded with url: /w/api.php (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x00000130B5E94E10>, 'Connection to wikispot.org timed out. (connect timeout=6.05)'))
What happens?
- I get this error when processing the page arz:ميندوسينو كاونتى ، كاليفورنيا because its wikitext contains this link:
* [[wikispot:mendocino:Hiking|Hiking trails in Mendocino County]] at WikiSpot
- The website http://wikispot.org/ is offline (gives "This site can’t be reached ERR_CONNECTION_TIMED_OUT") message when trying to connect to it.
- Eventually the bot crashes after several retries and the bot run has to be restarted manually.
What should have happened instead?
- When encountering such error, the bot should have skipped the page and continued working on other pages instead.
Software version:
Pywikibot: [https] r-pywikibot-core (0fb9fb7, g17870, 2023/05/19, 10:09:31, master) Release version: 8.2.0.dev2 setuptools version: 67.7.2 mwparserfromhell version: 0.6.4 wikitextparser version: n/a requests version: 2.30.0 certificate test: ok Python: 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)]