chiefgeek157 created this task.
chiefgeek157 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue** (include links if applicable):
- Use a private wiki
- Configure a families file, user-config, and user-password file
- Use pwb login
**What happens?**:
This command will fail with a readapidenied error.
**What should have happened instead?**:
The login should have succeeded
**Software version** (skip for WMF-hosted wikis like Wikipedia):
1.37.4
**Other information** (browser name/version, screenshots, etc.):
Python 3.11.1, pywikibot 8.0.0
The correction is found in login.py around line 430:
login_request[
self. Keyword('token')] = self.site.tokens['login']
should be changed to:
login_request[
self. Keyword('token')] = response['token']
Making this change allowed the login process to continue. The problem is that
self.site.token is an empty dict at this point in the login process. The
response has the needed token.
TASK DETAIL
https://phabricator.wikimedia.org/T328814
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: chiefgeek157
Cc: Aklapper, chiefgeek157, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt,
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]