jayvdb created this task. jayvdb added subscribers: pywikipedia-bugs, jayvdb, Aklapper. jayvdb added projects: pywikibot-core, Pywikibot-login.py.
TASK DESCRIPTION If an automatic login to a private (read denied) is attempted twice, the first action will raise NoUsername, but the second login will raise APIError.
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
XZise added a subscriber: XZise. XZise added a comment.
I'm currently guessing but it does sort of make sense. The second APIError happens probably because after the first failed login the API knows that login doesn't work and doesn't attempt to login but just reraises the possible APIError caught in the first attempt.
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, Aklapper, jayvdb, pywikipedia-bugs
XZise added a comment.
Ah the site's `_loginstatus` is -2 (`IN_PROGRESS`). Seems like the status is not properly changed
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, Aklapper, jayvdb, pywikipedia-bugs
gerritbot added a subscriber: gerritbot. gerritbot added a comment.
Change 215000 had a related patch set uploaded (by XZise): [FIX] APISite: Reset loginstatus
https://gerrit.wikimedia.org/r/215000
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: gerritbot, XZise, Aklapper, jayvdb, pywikipedia-bugs
gerritbot added a project: Patch-For-Review.
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: gerritbot, XZise, Aklapper, jayvdb, pywikipedia-bugs
XZise claimed this task.
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: gerritbot, XZise, Aklapper, jayvdb, pywikipedia-bugs
gerritbot added a comment.
Change 143038 had a related patch set uploaded (by John Vandenberg): site._loginstatus - login process and caching
https://gerrit.wikimedia.org/r/143038
TASK DETAIL https://phabricator.wikimedia.org/T100965
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise, gerritbot Cc: gerritbot, XZise, Aklapper, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org