Bugs item #2716315, was opened at 2009-03-27 01:38
Message generated for change (Settings changed) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=271631…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
Status: Pending
Resolution: Fixed
Priority: 5
Private: No
Submitted By: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Russell Blau (russblau)
Summary: undetected session termination
Initial Comment:
I have a script which runs everyday on the toolserver to update French maintenance pages
related to WP1.0 evaluation (
http://fr.wikipedia.org/wiki/Projet:Am%C3%A9rique_pr%C3%A9colombienne/%C3%8…
).
The main action is to retrieve list of articles from categories. I have included a very
simplified version of the script if anyone needs to know what the bot was doing.
And once every month or so (remember, it's a daily task), I get an ApiError about
limit:
Traceback (most recent call last):
File "/home/nicdumz/pywikipedia/statistiques.py", line 79, in <module>
for p in pwsite.categorymembers(cat, namespaces=[1]):
File "/home/nicdumz/pywikipedia/pywikibot/data/api.py", line 428, in __iter__
self.data = self.request.submit()
File "/home/nicdumz/pywikipedia/pywikibot/data/api.py", line 260, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: gcmlimit: gcmlimit may not be over 500 (set to 5000) for
users
It looks like a session issue, the bot getting logged out in the middle of his task:
today, the bot had already retrieved the contents of ~500 categories before crashing
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date:
2009-04-20 13:40
Message:
Believed fixed in r6643; leaving in Pending status in case this recurs
(since the bug by definition only occurs once every 30 days, it is
difficult to be certain that all cases are handled correctly)
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-27 22:10
Message:
Updating the title: It was definitely a session termination. I got asked
for a password on the next run, and it would explain why this bug would
only occur every month or so.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=271631…