KockaAdmiralac / KockaLogger

Parses IRC logs of activity across Fandom, then relays it into a Discord channel, searches for spam/vandalism and more.
GNU General Public License v3.0
8 stars 9 forks source link

newusers: Retry mwn login failures #61

Open KockaAdmiralac opened 1 year ago

KockaAdmiralac commented 1 year ago

Description

mwn happens to throw login failures while moving reports.

Reproduction steps

Steps to reproduce the behavior:

  1. Move reports for several days
  2. mwn suddenly throws one of the following errors:
    {
    "code": "mwn_failedlogin",
    "info": "Login failed",
    "response": {
        "login": {
            "result": "WrongToken"
        }
    }
    }
    {
    "code": "mwn_failedlogin",
    "info": "Already logged in as ***@***, logout first to re-login",
    "response": {
        "login": {
            "result": "Aborted",
            "reason": "Cannot log in when using MediaWiki\\Session\\BotPasswordSessionProvider sessions."
        }
    }
    }

Expected behavior

Just retry the login after a delay.