chiefgeek157 added a comment.
Here is a hand-built "log" based on print statements I previously inserted in
a local copy.
at line 406, here is the data:
self.action = 'login'
login_result = {
'warnings': {
'main': {
'*': 'Subscribe to the mediawiki-api-announce mailing list
at [deleted] for notice of API deprecations and breaking changes.'
},
'login': {
'*': 'Fetching a token via "action=login" is deprecated.
Use "action=query&meta=tokens&type=login" instead.'
}
},
'login': {
'result': 'NeedToken',
'token': '2728dc3bff180ef48b90f3ee132e1cdc63dd8091+\\'
}
}
and, significantly,
self.site.tokens = {} (which I see is really a TokenWallet)
on line 430, this leads to an exception on my installation. I observed that
the needed token is already in the response, which is why I made the change I
did.
To be fair, I did not instrument the TokenWallet to figure out why it did not
load the login token and return it. It does fail with an exception, but it is
an odd apireaderror exception. This seems redundant since the user is
attempting to login so will not yet have any permissions.
I did see an older issue where the mediawiki version number was being
accessed during login and this was causing a read permission error, but I
thought that was fixed already.
Turning on -v - v on the command line did not return anything additional that
would be useful. It is the apparent exception in tokens['login'] that causes
the problem. I can dig more if needed.
TASK DETAIL
https://phabricator.wikimedia.org/T328814
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: chiefgeek157
Cc: Xqt, Aklapper, chiefgeek157, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, JJMC89, TerraCodes, Dvorapa, Altostratus, Avicennasis,
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]