Bugs item #2716315, was opened at 2009-03-27 06:38 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2716315...
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: Open Resolution: None 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%89... ).
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: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-28 03: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=2716315...
pywikipedia-l@lists.wikimedia.org