Xqt added a comment.

  Wasn't able to reproduce the response 500 issue. The Timeout was raised for 
me (after max_retries tries):
  
    WARNING: Waiting 20 seconds before retrying.
    ...
    Traceback (most recent call last):
      File "D:\pwb\GIT\core\pywikibot\data\sparql.py", line 151, in query
        self.last_response = http.fetch(url, headers=headers)
      File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 393, in fetch
        callback(response)
      File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 283, in 
error_handling_callback
        raise response from None
      File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 384, in fetch
        response = session.request(method, uri,
      File "C:\Python311\Lib\site-packages\requests\sessions.py", line 587, in 
request
        resp = self.send(prep, **send_kwargs)
      File "C:\Python311\Lib\site-packages\requests\sessions.py", line 701, in 
send
        r = adapter.send(request, **kwargs)
      File "C:\Python311\Lib\site-packages\requests\adapters.py", line 578, in 
send
        raise ReadTimeout(e, request=request)
    requests.exceptions.ReadTimeout: 
HTTPSConnectionPool(host='query.wikidata.org', port=443): Read timed out. (read 
timeout=45)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<pyshell#12>", line 1, in <module>
        generator = pg.WikidataSPARQLPageGenerator(timeout)
      File "D:\pwb\GIT\core\pywikibot\pagegenerators\_generators.py", line 
1068, in WikidataSPARQLPageGenerator
        data = query_object.get_items(query,
      File "D:\pwb\GIT\core\pywikibot\data\sparql.py", line 199, in get_items
        res = self.select(query, full_data=True)
      File "D:\pwb\GIT\core\pywikibot\data\sparql.py", line 115, in select
        data = self.query(query, headers=headers)
      File "D:\pwb\GIT\core\pywikibot\data\sparql.py", line 153, in query
        self.wait()
      File "D:\pwb\GIT\core\pywikibot\data\sparql.py", line 166, in wait
        raise TimeoutError('Maximum retries attempted without success.')
    pywikibot.exceptions.TimeoutError: Maximum retries attempted without 
success.

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

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

To: Xqt
Cc: Smalyshev, Xqt, Aklapper, BrokenSegue, pywikibot-bugs-list, PotsdamLamb, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to