Page MenuHomePhabricator

APIError: specialpage-cantexecute on Travis CI
Closed, ResolvedPublic

Description

======================================================================
ERROR: test_unwatchedpages (tests.site_tests.TestSiteGenerators)
Test the site.unwatchedpages() method.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 812, in test_unwatchedpages
    unwatchedpages = list(mysite.unwatchedpages(total=10))
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 2753, in __iter__
    self.data = self.request.submit()
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 2342, in submit
    self._data = super(CachedRequest, self).submit()
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 2189, in submit
    raise APIError(**result['error'])
APIError: specialpage-cantexecute: You don't have permission to view the results of this special page. [help:See https://zh.wikisource.org/w/api.php for API usage.]

see: https://travis-ci.org/wikimedia/pywikibot-core/jobs/184242117#L4463-L4475

Event Timeline

Change 327559 had a related patch set uploaded (by Magul):
Add new error code for can't execute special page

https://gerrit.wikimedia.org/r/327559

Change 327559 merged by jenkins-bot:
Add new error code for can't execute special page

https://gerrit.wikimedia.org/r/327559