Multichill created this task.
Multichill added projects: Pywikibot, Pywikibot-Wikidata, 
Wikidata-Query-Service.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  I have some bots that are not doing their reporting. Looking at the logs I 
noticed I hit the default socket timeout of 45 seconds. The Wikidata SPARQL 
endpoint at https://query.wikidata.org/ has a server side time out of 60 
seconds. That extra 15 seconds might just be enough.
  
  **Steps to replicate the issue** (include links if applicable):
  
  I added this to my user-config.py:
  
  socket_timeout = 90
  
  And ran a bot that does some heavy SPARQL queries ( 
https://github.com/multichill/toollabs/blob/master/bot/wikidata/painting_external-id_property_statistics.py
 ).
  
  **What happens?**:
  
  Not enough extra time so I'm hitting the server side time out:
  
      File "/home///pywikibot/pywikibot/comms/http.py", line 356, in 
error_handling_callback
        raise ServerError(
    pywikibot.exceptions.ServerError: 500 Server Error: Internal Server Error
    CRITICAL: Exiting due to uncaught exception ServerError: 500 Server Error: 
Internal Server Error
  
  **What should have happened instead?**:
  
  We should probably handle the 500 error as a recoverable error (just like the 
socket time out) and retry.
  
  **Software version** (skip for WMF-hosted wikis like Wikipedia): Recent (but 
not latest) git version
  
  **Other information** (browser name/version, screenshots, etc.):

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

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

To: Multichill
Cc: Aklapper, pywikibot-bugs-list, Multichill, AWesterinen, PotsdamLamb, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Namenlos314, Gq86, Lucas_Werkmeister_WMDE, EBjune, Tbscho, MayS, merbst, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Jonas, Xmlizer, mys_721tx, 
jkroll, Wikidata-bugs, Jdouglas, Xqt, aude, Tobias1984, Manybubbles, jayvdb, 
Ricordisamoa, Masti, Alchimista
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to