Xqt created this task.
Xqt added projects: Pywikibot-tests, Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue**:
Run any script or tests which needs a token.
**What happens?**:
======================================================================
ERROR: test_watch (tests.page_tests.TestPageUserAction)
Test Page.watch, with and without unwatch enabled.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/page_tests.py", line
1029, in test_watch
rv = userpage.watch(unwatch=True)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_basepage.py",
line 1377, in watch
return self.site.watch(self, unwatch)
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/site/_decorators.py", line 92,
in callee
return fn(self, *args, **kwargs)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_apisite.py",
line 2746, in watch
results = req.submit()
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/data/api/_requests.py", line
1088, in submit
raise pywikibot.exceptions.APIError(**args)
pywikibot.exceptions.APIError: missingparam: The "token" parameter must be
set.
[param:
action=watch&titles=User%3APywikibot-test&unwatch=&assert=user&maxlag=5&format=json&token=;
servedby: mw2317;
help: See https://en.wikipedia.org/w/api.php for API usage. Subscribe to
the mediawiki-api-announce mailing list at
<https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/>
for notice of API deprecations and breaking changes.]
https://github.com/wikimedia/pywikibot/actions/runs/4638554224/jobs/8208471297
TASK DETAIL
https://phabricator.wikimedia.org/T334288
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki,
Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]