Xqt added a comment.

  > I think so. But can we handle the timeouts in pw? As the other erros from 
API are handled with incremental delays and retry.
  
  We can only increase the socket_timeout value for real timeout exceptions. 
[1] Maybe within exception handling callback in http module. [3] For wikidata 
this should be recommended currently (somehow). [2] But this will not help vor 
ServerError exceptions. Maybe we can show the html response in such case (or 
log it) for further debugging also for upstream issues.
  
  [1] 
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.config.html#http-settings
  [2] 
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywikibot.site._generators.GeneratorsMixin.alllinks
  [3] 
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.comms.html#comms.http.error_handling_callback

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

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

To: Xqt
Cc: JJMC89, matej_suchanek, Xqt, Aklapper, Masti, pywikibot-bugs-list, mevo, 
Isabelladantes1983, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 
786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, 
Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, 
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, 
Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, Dvorapa, Altostratus, 
Neuronton, Avicennasis, mys_721tx, jayvdb, 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