Meno25 created this task.
Meno25 added projects: Pywikibot, Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, alaa, Aklapper.

TASK DESCRIPTION
  **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:ميندوسينو كاونتى ، كاليفورنيا 
<https://arz.wikipedia.org/wiki/%D9%85%D9%8A%D9%86%D8%AF%D9%88%D8%B3%D9%8A%D9%86%D9%88_%D9%83%D8%A7%D9%88%D9%86%D8%AA%D9%89_%D8%8C_%D9%83%D8%A7%D9%84%D9%8A%D9%81%D9%88%D8%B1%D9%86%D9%8A%D8%A7>
 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)]

TASK DETAIL
  https://phabricator.wikimedia.org/T337045

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Aklapper, alaa, pywikibot-bugs-list, Meno25, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org

Reply via email to