[Pywikipedia-bugs] [ pywikipediabot-Bugs-3009336 ] badtoken: invalid token during Page.put

SourceForge.net noreply at sourceforge.net
Wed Oct 5 17:42:18 UTC 2011


Bugs item #3009336, was opened at 2010-05-30 23:34
Message generated for change (Comment added) made by russblau
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3009336&group_id=93107

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: Works For Me
Priority: 5
Private: No
Submitted By: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Russell Blau (russblau)
Summary: badtoken: invalid token during Page.put

Initial Comment:
From time to time I get token errors

 File "/home/nicdumz/python/dumzibot/statistics.py", line 24, in putNb
   page.put(str(nb))
 File "/home/nicdumz/.local/lib/python2.6/site-packages/pywikibot/page.py", line 767, in put
   async, callback)
 File "/home/nicdumz/.local/lib/python2.6/site-packages/pywikibot/page.py", line 726, in save
   self._save(comment, minor, watchval, async, callback)
 File "/home/nicdumz/.local/lib/python2.6/site-packages/pywikibot/page.py", line 749, in _save
   raise pywikibot.PageNotSaved("%s: %s" %(link, err))
pywikibot.exceptions.PageNotSaved: [[Projet:Maritime/Total]]: badtoken: Invalid token

I (re-)activated debug output and will try to look more carefully for this error. The (ugly) script causing this is available at http://bitbucket.org/nicdumz/wikipedia-dumzibot/src/tip/statistics.py but it is clearly not doing anything crazy on the pywikibot side, other than what I included in the traceback.

----------------------------------------------------------------------

>Comment By: Russell Blau (russblau)
Date: 2011-10-05 13:42

Message:
Does this issue still exist?  I haven't seen such errors.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3009336&group_id=93107



More information about the Pywikipedia-bugs mailing list