https://bugzilla.wikimedia.org/show_bug.cgi?id=64492
Bug ID: 64492 Summary: tests/site_tests.py TestSiteObject.testLinkMethods raises pywikibot.data.api.APIError: gblbadcontinue: Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Web browser: --- Mobile Platform: ---
API Error: query= {'action': 'query', 'format': 'json', u'gblcontinue': '0|4709981|Main_Page', u'gbllimit': '500', u'gblnamespace': '0|2', 'gbltitle': 'Main Page', 'generator': 'backlinks', 'iiprop': 'comment|metadata|sha1|size|timestamp|url|user', 'indexpageids': '', 'inprop': 'protection', 'maxlag': '5', 'meta': 'userinfo', 'prop': 'categoryinfo|imageinfo|info', 'uiprop': 'blockinfo|hasmsg'} response= {u'servedby': u'mw1192', u'error': {}} Traceback (most recent call last): File "pwb.py", line 145, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 69, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "tests/site_tests.py", line 1117, in <module> unittest.main() File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib/python2.7/unittest/main.py", line 229, in runTests self.result = testRunner.run(self.test) File "/usr/lib/python2.7/unittest/runner.py", line 151, in run test(result) File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/unittest/suite.py", line 108, in run test(result) File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/unittest/suite.py", line 108, in run test(result) File "/usr/lib/python2.7/unittest/case.py", line 391, in __call__ return self.run(*args, **kwds) File "pwb.py", line 19, in <lambda> import unittest; unittest.TestCase.run = lambda self,*args,**kw: unittest.TestCase.debug(self) File "/usr/lib/python2.7/unittest/case.py", line 396, in debug getattr(self, self._testMethodName)() File "tests/site_tests.py", line 248, in testLinkMethods set(mysite.pagebacklinks(mainpage, namespaces=[0, 2])))) File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/data/api.py", line 695, in __iter__ self.data = self.request.submit() File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/data/api.py", line 493, in submit self._data = super(CachedRequest, self).submit() File "/home/valhallasw/src/pwb/pywikibot-core/pywikibot/data/api.py", line 421, in submit raise APIError(code, info, **result["error"]) pywikibot.data.api.APIError: gblbadcontinue: Invalid continue param. You should pass the original value returned by the previous query
Probably caused by https://gerrit.wikimedia.org/r/#/c/103589/ / us building a continue parameter instead of re-passing it.