BrokenSegue added a comment.

  I am using requests version "2.28.1".
  
  And unfortunately your solution doesn't work. That retry only happens if the 
HTTP request times out. But often when using wikidata's SPARQL the server 
itself times out and returns non-JSON as its response. This causes the 
offending code I linked to not retry at all no matter what `max_retries` is set 
to. Arguably this is another bug (it should detect/retry in this situation).

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

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

To: BrokenSegue
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