JJMC89 added a comment.

  This isn't just on Commons.
  
    2020-09-02 05:55:45             api.py, 2025 in             submit: WARNING 
 API error badtoken: Invalid CSRF token.
    2020-09-02 05:55:45             api.py, 2074 in             submit: VERBOSE 
 API Error: query=
    ("{'assert': ['user'], 'nocreate': [True], 'text': ['{{Category redirect', "
     "'Football clubs in Mizoram}}'], 'summary': ['Removing [[:Category:Empty "
     'categories with no backlinks]] per [[Wikipedia:Categories for '
     'discussion/Log/2020 August 9#Category:Empty categories with no '
     "backlinks]]'], 'action': ['edit'], 'createonly': [False], 'format': "
     "['json'], 'minor': [True], 'token': "
     "['<token_goes_here>'], 'basetimestamp': "
     "[Timestamp(2020, 6, 1, 12, 15, 27)], 'bot': [True], 'recreate': [True], "
     "'title': [Category('Category:Mizoram football clubs')], 'notminor': 
[False], "
     "'maxlag': ['5']}")
    2020-09-02 05:55:45             api.py, 2076 in             submit: VERBOSE 
            response=
    {'error': {'info': 'Invalid CSRF token.', 'code': 'badtoken', 'help': 'See 
https://en.wikipedia.org/w/api.php for API usage. Subscribe to the 
mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for 
notice of API deprecations and breaking changes.'}, 'servedby': 'mw2321'}
    2020-09-02 05:55:45        __init__.py,  108 in             handle: VERBOSE 
 Error saving page [[Category:Mizoram football clubs]] (badtoken: Invalid CSRF 
token.
    [help: See https://en.wikipedia.org/w/api.php for API usage. Subscribe to 
the mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for 
notice of API deprecations and breaking changes.])
    Traceback (most recent call last):
      File "/shared/pywikibot/core_stable/pywikibot/page/__init__.py", line 99, 
in handle
        func(self, *args, **kwargs)
      File "/shared/pywikibot/core_stable/pywikibot/page/__init__.py", line 
1315, in _save
        watch=watch, bot=botflag, **kwargs)
      File "/shared/pywikibot/core_stable/pywikibot/site/_decorators.py", line 
94, in callee
        return fn(self, *args, **kwargs)
      File "/shared/pywikibot/core_stable/pywikibot/site/__init__.py", line 
5202, in editpage
        result = req.submit()
      File "/shared/pywikibot/core_stable/pywikibot/data/api.py", line 2078, in 
submit
        raise APIError(**result['error'])
    pywikibot.data.api.APIError: badtoken: Invalid CSRF token.
    [help: See https://en.wikipedia.org/w/api.php for API usage. Subscribe to 
the mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for 
notice of API deprecations and breaking changes.]
    2020-09-02 05:55:45             bot.py, 1251 in         _save_page: ERROR   
 Skipping Category:Mizoram football clubs because of a save related error: Edit 
to page [[Category:Mizoram football clubs]] failed:
    badtoken: Invalid CSRF token.
    [help: See https://en.wikipedia.org/w/api.php for API usage. Subscribe to 
the mediawiki-api-announce mailing list at 
&lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for 
notice of API deprecations and breaking changes.]

TASK DETAIL
  https://phabricator.wikimedia.org/T261050

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JJMC89
Cc: JJMC89, matej_suchanek, daniel, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, 
Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, 
Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Tbscho, 
MayS, Sethakill, Mdupont, dg711, Agabi10, Altostratus, Avicennasis, Pchelolo, 
mys_721tx, Bawolff, jayvdb, Anomie, Masti, Alchimista, Rxy, Legoktm
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to