Page MenuHomePhabricator

badtoken in site.patrol()
Closed, InvalidPublic

Description

site_tests.py.SiteUserTestCase2.testPatrol

======================================================================
ERROR: Test the site.patrol() method.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 1360, in testPatrol
    result = list(mysite.patrol(rcid=rc['rcid']))
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/site.py", line 4629, in patrol
    result = req.submit()
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 1698, in submit
    raise APIError(code, info, **result["error"])
APIError: badtoken: Invalid token
-------------------- >> begin captured logging << --------------------
pywiki: VERBOSE: Found 5 wiktionary:fr processes running, including this one.
pywiki: VERBOSE: START /home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py:SiteUserTestCase2.testPatrol
pywiki: INFO: Sleeping for 47.9 seconds, 2015-04-05 00:32:19
pywiki: VERBOSE: API Error: query=
{'action': [u'patrol'],
 'assert': [u'user'],
 'format': ['json'],
 'maxlag': ['5'],
 'rcid': [19694249],
 'token': [u'9b42b38b3ae8efd41b5ec57083a2032755208293+\\']}
pywiki: VERBOSE:            response=
{u'servedby': u'mw1191', u'error': {'help': u'See https://fr.wiktionary.org/w/api.php for API usage'}}

https://travis-ci.org/wikimedia/pywikibot-core/jobs/57204881

Event Timeline

jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added a subscriber: jayvdb.
Restricted Application added a subscriber: Unknown Object (MLST). · View Herald TranscriptApr 5 2015, 1:47 AM

I'm pretty sure this has been fixed, however the login_tests patch still showed some issues, so we'd need to retest.

Xqt added a subscriber: Xqt.

Didn’t occur again the last 3 years I guess