Last modified: 2014-04-26 22:15:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66492, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64492 - tests/site_tests.py TestSiteObject.testLinkMethods raises pywikibot.data.api.APIError: gblbadcontinue:
tests/site_tests.py TestSiteObject.testLinkMethods raises pywikibot.data.api....
Status: RESOLVED INVALID
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-26 22:04 UTC by Merlijn van Deen (test)
Modified: 2014-04-26 22:15 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Merlijn van Deen (test) 2014-04-26 22:04:11 UTC
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.
Comment 1 Merlijn van Deen (test) 2014-04-26 22:15:46 UTC
OR by me making a mess. Splitting and sorting parameters is dangerous, as the order matters for these parameters. (0|Main_Page|4709981 was sorted to 0|4709981|Main_Page)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links