JJMC89 added a comment.

  The error is still an issue. It appears to have decreased in frequency 
though. I am using OAuth if that matters.
  
    2021-08-06 11:47:04             bot.py,  466 in     writelogheader: VERBOSE 
 === Pywikibot framework v6.5.0 -- Logging header ===
    2021-08-06 11:47:04             bot.py,  469 in     writelogheader: VERBOSE 
 COMMAND: ['/data/project/jjmc89-bot/repos/JJMC89_bot/enwiki/cfdw.py', 
'-dir:.pywikibot_cfdwl', '-page:WP:Categories_for_discussion/Working/Large', 
'-page:WP:Categories_for_discussion/Working']
    2021-08-06 11:47:04             bot.py,  472 in     writelogheader: VERBOSE 
 DATE: 2021-08-06 11:47:04.201385 UTC
    2021-08-06 11:47:04             bot.py,  477 in     writelogheader: VERBOSE 
 VERSION: pywikibot/__init__.py (, -1 (unknown), 2021/08/05, 18:30:39, n/a)
    2021-08-06 11:47:04             bot.py,  483 in     writelogheader: VERBOSE 
 SYSTEM: posix.uname_result(sysname='Linux', nodename='cfdwl-1628250420-dzr66', 
release='4.19.0-14-amd64', version='#1 SMP Debian 4.19.171-2 (2021-01-30)', 
machine='x86_64')
  
    2021-08-06 11:55:17             api.py, 1815 in             submit: VERBOSE 
            headers=
    {'Date': 'Fri, 06 Aug 2021 11:55:14 GMT', 'Server': 'mw2372.codfw.wmnet', 
'X-Content-Type-Options': 'nosniff', 'Mediawiki-Api-Error': 'badtoken', 
'X-Frame-Options': 'SAMEORIGIN', 'Content-Disposition': 'inline; 
filename=api-result.json', 'Cache-Control': 'private, must-revalidate, 
max-age=0', 'Content-Type': 'application/json; charset=utf-8', 
'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Age': '6', 'X-Cache': 
'cp1077 pass, cp1087 pass', 'X-Cache-Status': 'pass', 'Server-Timing': 
'cache;desc="pass", host;desc="cp1087"', 'Strict-Transport-Security': 
'max-age=106384710; includeSubDomains; preload', 'Report-To': '{ "group": 
"wm_nel", "max_age": 86400, "endpoints": [{ "url": 
"https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0";
 }] }', 'NEL': '{ "report_to": "wm_nel", "max_age": 86400, "failure_fraction": 
0.05, "success_fraction": 0.0}', 'Permissions-Policy': 'interest-cohort=()', 
'X-Client-IP': '172.16.1.189', 'Accept-Ranges': 'bytes', 'Content-Length': 
'242', 'Connection': 'keep-alive'}
    2021-08-06 11:55:17             api.py, 1695 in         _bad_token: VERBOSE 
 Login status: IN_PROGRESS
    2021-08-06 11:55:17             api.py, 1865 in             submit: VERBOSE 
 API Error: query=
    ("{'action': ['edit'], 'title': [Category('Category:Clean-up categories 
from "
     "January 2017')], 'text': ['{{Monthly clean-up category}}'], 'token': "
     "['<redacted>'], 'summary': "
     "['[[Wikipedia:Categories for discussion/Log/2021 June 
17#Category:Clean-up "
     "categories]] closed as no consensus'], 'bot': [True], 'recreate': [True], 
"
     "'createonly': [False], 'nocreate': [False], 'minor': [True], 'notminor': "
     "[False], 'basetimestamp': [Timestamp(2021, 7, 30, 5, 0, 27)], 'assert': "
     "['user'], 'maxlag': ['5'], 'format': ['json']}")
    2021-08-06 11:55:17             api.py, 1866 in             submit: VERBOSE 
            response=
    {'error': {'code': 'badtoken', 'info': '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/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt;
 for notice of API deprecations and breaking changes.'}, 'servedby': 'mw2372'}
    2021-08-06 11:55:17     _decorators.py,   42 in             handle: VERBOSE 
 Error saving page [[Category:Clean-up categories from January 2017]] 
(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/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt;
 for notice of API deprecations and breaking changes.])
    Traceback (most recent call last):
      File 
"/data/project/jjmc89-bot/.venvs/jjmc89-bot/lib/python3.7/site-packages/pywikibot/page/_decorators.py",
 line 33, in handle
        func(self, *args, **kwargs)
      File 
"/data/project/jjmc89-bot/.venvs/jjmc89-bot/lib/python3.7/site-packages/pywikibot/page/__init__.py",
 line 1224, in _save
        watch=watch, bot=botflag, **kwargs)
      File 
"/data/project/jjmc89-bot/.venvs/jjmc89-bot/lib/python3.7/site-packages/pywikibot/site/_decorators.py",
 line 92, in callee
        return fn(self, *args, **kwargs)
      File 
"/data/project/jjmc89-bot/.venvs/jjmc89-bot/lib/python3.7/site-packages/pywikibot/site/_apisite.py",
 line 1633, in editpage
        result = req.submit()
      File 
"/data/project/jjmc89-bot/.venvs/jjmc89-bot/lib/python3.7/site-packages/pywikibot/data/api.py",
 line 1868, in submit
        raise pywikibot.exceptions.APIError(**result['error'])
    pywikibot.exceptions.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/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt;
 for notice of API deprecations and breaking changes.]
    2021-08-06 11:55:17        __init__.py, 1332 in             _flush: VERBOSE 
 Dropped throttle(s).
    2021-08-06 11:55:17            http.py,   88 in              flush: VERBOSE 
 Closing network session.
    2021-08-06 11:55:17            http.py,   92 in              flush: 
CRITICAL Exiting due to uncaught exception <class 
'pywikibot.exceptions.OtherPageSaveError'>
    2021-08-06 11:55:17            http.py,   94 in              flush: VERBOSE 
 Network session closed.

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

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

To: JJMC89
Cc: SuperHamster, Schlurcher, Count_Count, JJMC89, matej_suchanek, daniel, 
eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, 
Multichill, Devnull, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, 
Zkhalido, WDoranWMF, holger.knust, EvanProdromou, Viztor, DannyS712, Wenyi, 
Amorymeltzer, Tbscho, MayS, Sethakill, Mdupont, dg711, Agabi10, Altostratus, 
Avicennasis, Pchelolo, mys_721tx, Bawolff, jayvdb, Masti, Alchimista, Legoktm
_______________________________________________
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org

Reply via email to