Nirvanchik added a comment.
I found a hotfix that helped me to log in:
class TokenWallet(Container):
def __getitem__(self, key: str) -> str:
"""Get token value for the given key."""
if self.site
Nirvanchik added a comment.
So it crashes while getting new token:
ERROR: File "c:\work\wiki\bot\Python\git\core\pywikibot\site\_apisite.py",
line 409, in login
if login_manager.login(retry=True, autocreate=autocreate):
ERROR: File "c:\work\wiki\bot\
Nirvanchik added a comment.
In my case it tries to login without token (may be it relies that cookies may
be available?) and fails.
ERRORReceived incorrect login token. Forcing re-login.
After that, it is making again query siteinfo
URI:
'/mediawiki/api.php?action
Nirvanchik added a comment.
Wow. The problem I was writing about is handled already with using try-except.
# May occur if you are not logged in (no API read permissions).
except APIError:
pass
So I have another problem actually.
TASK DETAIL
https
Nirvanchik added a comment.
This is where pywikibot is making request.
Traceback (most recent call last):
File "c:\work\wiki\bot\Python\git\core\pwb.py", line 39, in
sys.exit(main())
File "c:\work\wiki\bot\Python\git\core\pwb.py&quo
Nirvanchik added a comment.
user-config.py, user-password.py are configured, wiki family class is
generated.
Pywikibot is a fresh master 33803553adc3f1afa0e950f20fa6756619cbb459
<https://phabricator.wikimedia.org/rPWBC33803553adc3f1afa0e950f20fa6756619cbb459>
Some info about Wik
Nirvanchik added a comment.
I also suffer of this problem :(
TASK DETAIL
https://phabricator.wikimedia.org/T284577
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, Nirvanchik
Cc: Nirvanchik, Xqt, Mpaa, Dvorapa, pywikibot-bugs-list, RhinosF1