| Xqt created this task. Xqt added projects: Pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
tests/api_tests.py::TestLazyLoginNotExistUsername::test_access_denied_notexist_username WARNING: API error readapidenied: You need read permission to use this module WARNING: API error readapidenied: You need read permission to use this module ERROR: APIError: readapidenied: You need read permission to use this module [help:See https://steward.wikimedia.org/w/api.php for API usage] WARNING: /home/travis/build/wikimedia/pywikibot-core/pywikibot/site.py:2699: DeprecationWarning: pywikibot.family.Family.version is deprecated; use APISite.version() instead. version = self.family.version(self.code)
WARNING: API error readapidenied: You need read permission to use this module Logging in to steward:steward as Not registered username WARNING: API error readapidenied: You need read permission to use this module ERROR: APIError: readapidenied: You need read permission to use this module [help:See https://steward.wikimedia.org/w/api.php for API usage] WARNING: /home/travis/build/wikimedia/pywikibot-core/pywikibot/site.py:2699: DeprecationWarning: pywikibot.family.Family.version is deprecated; use APISite.version() instead. version = self.family.version(self.code) ...
100 or 1000 times, and finally:
WARNING: API error readapidenied: You need read permission to use this module
ERROR: Login failed (readapidenied).
Logging in to steward:steward as Not registered username
WARNING: API error readapidenied: You need read permission to use this module
ERROR: APIError: readapidenied: You need read permission to use this module [help:See https://steward.wikimedia.org/w/api.php for API usage]
WARNING: /home/travis/build/wikimedia/pywikibot-core/pywikibot/site.py:2699: DeprecationWarning: pywikibot.family.Family.version is deprecated; use APISite.version() instead.
version = self.family.version(self.code)
WARNING: API error readapidenied: You need read permission to use this module
ERROR: APIError: readapidenied: You need read permission to use this module [help:See https://steward.wikimedia.org/w/api.php for API usage]
WARNING: /home/travis/build/wikimedia/pywikibot-core/pywikibot/site.py:2699: DeprecationWarning: pywikibot.family.Family.version is deprecated; use APISite.version() instead.
version = self.family.version(self.code)
ERROR: Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 1953, in submit
body=body, headers=headers)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/tools/__init__.py", line 1417, in wrapper
return obj(*__args, **__kw)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 279, in request
r = fetch(baseuri, method, body, headers, **kwargs)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 434, in fetch
error_handling_callback(request)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 352, in error_handling_callback
raise request.data
RuntimeError: maximum recursion depth exceeded in cmp
WARNING: Waiting 5 seconds before retrying.
ERROR: Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 1953, in submit
body=body, headers=headers)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/tools/__init__.py", line 1417, in wrapper
return obj(*__args, **__kw)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 279, in request
r = fetch(baseuri, method, body, headers, **kwargs)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 434, in fetch
error_handling_callback(request)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 352, in error_handling_callback
raise request.data
RuntimeError: maximum recursion depth exceeded in cmp
WARNING: Waiting 10 seconds before retrying.
ERROR: Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 1953, in submit
body=body, headers=headers)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/tools/__init__.py", line 1417, in wrapper
return obj(*__args, **__kw)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 279, in request
r = fetch(baseuri, method, body, headers, **kwargs)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 434, in fetch
error_handling_callback(request)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 352, in error_handling_callback
raise request.data
RuntimeError: maximum recursion depth exceeded in cmpAfter the first request the bot tries to login which fails as expected.
But there is a next request, I guess done by a siteinfo call to get the version string caused from a MediaWikiVersion comparison which gives a fallback to the family version string and shows that deprecate warning. After that the next try to login followed by a hidden KeyError 'generator'. This loops over and over again until a maximum amount of recursion is exceeded.
TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: jayvdb, Aklapper, Xqt, pywikibot-bugs-list, MayS, Mdupont, JJMC89, Alchimista
Cc: jayvdb, Aklapper, Xqt, pywikibot-bugs-list, MayS, Mdupont, JJMC89, Alchimista
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
