Closed RheingoldRiver closed 9 months ago
Thanks, I will check it!
Please, get the latest mw_utils.py
from master branch (unreleased) and try to use it. If it will be the same result, please put debug messages here ("debug": true
).
Just to make sure I understand - you want me to merge master into this branch and make sure it still works? Or did you re-implement this PR in the current master branch?
I made some changes in original master branch, no needs to merge. Before make final changes I want to understand the problem more deeply :)
Ok. I can't reproduce this error more than once per couple of days (since you have to go a certain amount of time without connecting in order for it to happen) so it might take some time to get back to you.
Ok, thank you!
Ok actually I was able to repro pretty quickly:
I talked to one of the members of our backend development team, and he says that $wgObjectCacheSessionExpiry
is set to 3600
so this may be what's causing the behavior on Fandom specifically, and forcing mwclient to establish a totally new session is what "fixes" the issue.
Do you need any other info about this?
No, thank you! Sorry, I'm just a bit busy :)
Hi, Even if this is not the best fix for the problem, it is a fix, could you maybe merge it for now & make a ticket to improve the solution in a future patch? This way we can deploy a workaround for everyone using the extension on Fandom in the meantime without needing to install git & work from my branch. Thanks!
Ok actually I was able to repro pretty quickly:
I talked to one of the members of our backend development team, and he says that
$wgObjectCacheSessionExpiry
is set to3600
so this may be what's causing the behavior on Fandom specifically, and forcing mwclient to establish a totally new session is what "fixes" the issue.
You are logged-in without keep me logged in
or with, in browser?
Actually my fandom contract was just terminated so this is no longer relevant to me. Maybe @mszabo-wikia may be interested in pursuing this further, otherwise it can be closed.
Since UCP last year, Fandom's connection generally times out after 4-5 hours, resulting in a failed connection. The easiest way to deal with this is to begin using a totally new site object (relogging with existing site object doesn't work either). Prior to this fix, pretty much every day I'd have to redo a save operation after it failed once; this way, it just auto-retries, and will continue working afterwards too.
Example (though I changed the display text a bit since then):