No such thing as a small change | |
PerlMonks |
MediaWiki::API badtoken every now and thenby Skeeve (Parson) |
on Mar 28, 2018 at 14:21 UTC ( [id://1211919]=perlquestion: print w/replies, xml ) | Need Help?? |
Skeeve has asked for the wisdom of the Perl Monks concerning the following question: What could be the reason for intermittend "badtoken" errors when using MediaWiki::API's edit function? In my script, sometimes I get that error. When I restart the script, it usually works. I now inserted code to reconnect to my wiki in case a badtoken happens, but I'm wondering how I could debug the issus as it seems to be non-reproducible. Update: The reconnect code helped. In my last run of updating 378 entries I received a bad token once. After reconnecting it worked.
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{% +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
Back to
Seekers of Perl Wisdom
|
|