Last modified: 2013-11-12 10:24:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58884, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56884 - pywikibot keeps retrying when it should throw an exception
pywikibot keeps retrying when it should throw an exception
Status: RESOLVED DUPLICATE of bug 55219
Product: Pywikibot
Classification: Unclassified
network (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-11 06:20 UTC by Daniel Schwen
Modified: 2013-11-12 10:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Schwen 2013-11-11 06:20:29 UTC
I'm getting a lot of 503 non-JSON response warnings when saving large pages.

A lot of these supposedly failed attempts to save a page secretly succeed
so I want to trap the failure, read the page, and check if it already is in the state that I wanted to write, otherwise I'd just try again.

Now pywikipediabot tries again by itself an apparently infinite amount of times
Despite having set max_retries to 2 in my user-config.py

Here is  a paste excerpt from my output (not the two times I forced a keyboard interrupt by Ctrl-C to abort the fruitless retries and enter my manual retry loop, which immediately detects that the save was indeed successful)

http://pastebin.com/Xq1TRtns
Comment 1 Daniel Schwen 2013-11-11 06:21:11 UTC
"(not the" -> "(note the"
Comment 2 xqt 2013-11-11 06:23:26 UTC

*** This bug has been marked as a duplicate of bug 55219 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links