Last modified: 2014-06-19 14:17:18 UTC
I just got this message when I tried to report 65.125.115.30 to WP:AIV. "Failed to report user because: <?xml version="1.0"?><api servedby="mw1135!><error code="badtoken" info="Invalid token" /></api>" You should be able to use "mw.Api().postWithToken" (or something similar, because I don't know anything about code, so I just copied from another project about badtokens) which IIRC automatically fetches a new token if you get a badtoken error.
mhm, you have any idea why this happened? why should I get new token when I receive badtoken error? Isn't mediawiki meant to use one token for session? That is how I understand it, were you logged out or something?
I am trying to say I don't know what is wrong neither how to reproduce it
I might have gone afk for a short while and came acke, and then I was apparently logged out from Wikipedia on Chrome...might have been so as well on Huggle?
came back*
yes that was probably the reason, it might have been related to session purging done by wmf recently, so I am closing this, it can't be reproduced, so it can't be fixed
If I log out in Chrome, while having Huggle open, I can not edit in Huggle anymore (badtoken) I have to restart Huggle. Even if I log in again in Chrome, I can't edit anymore. This is frustrating since I sometimes have to log in using my bot on Chrome, and then I see "a lot" of vandals in Huggle, that I can't revert...It would be better if it could fetch a new token...
https://github.com/huggle/huggle3-qt-lx/pull/86
I can try to test it "a lot"...just release 0.3! :P