[00:17:30] hello, anyone around that can help me with the new bot login system? [00:18:07] I used Special:BotPasswords on meta to get a password, and I can log in, but the bot assertion is failing [00:18:31] don't tell me I need a different password for each project? [00:18:52] anomie, bd808: ^ [00:19:19] MusikAnimal: I don't think you should need a separate password, no [00:20:01] What behavior are you seeing? You're being authenticated but not getting the rights you expect? [00:20:46] I guess... I pass in `bot=true` to assert it's a bot, and that much fails [00:20:57] but I can read pages and what not [00:21:15] eh, I guess you don't need to be logged in for that [00:21:18] yeah [00:21:28] maybe I'm not logged in. I removed the bot=true and it edits as my IP [00:21:56] ok, so login is failing using a new bot password [00:22:02] yes, looks like it [00:22:18] does it work using the normal account password? [00:22:58] I can login in with my old password for the bot account, yes [00:23:36] do you check the login result? [00:23:52] have you verified that since you had the problem with the bot password? [00:24:14] bd808: yes, just logged in again with the old password [00:24:20] ok great [00:24:42] using the new password it "seems" to login, but I do get the expected warning about action=login being depracated [00:24:50] *deprecated [00:25:17] MusikAnimal: can we open a phabricator ticket and start recording things there? [00:27:17] sure [00:27:24] I wonder if I'm doing this right [00:27:38] You made a new name too right? [00:27:46] a new name? [00:28:08] The first thing https://en.wikipedia.org/wiki/Special:BotPasswords asks for is a bot name [00:28:52] and I shouldn't use my bot's name? [00:28:57] then the username you use to login becomes "my account name@botname" [00:29:12] yeah, I have MusikBot@MusikBot [00:29:18] ok [00:29:55] is this a new password for the bot account itself? I guess it'd have to be. E.g. I should be able to login on the web interface using the bot password [00:30:30] I think so. I was just going to try that myself [00:30:37] yeah cause that does not work [00:31:45] not for me either. I need to look at anomie's code to see if that is expected. It may only work via the api.php action [00:32:43] the thread on enwiki mentioned deleting the bot's cookies. I use the MediaWiki::Gateway framework and it seems the cookies are created each time I login, and I login for each run [00:33:45] actually I have to head home. Will be back online in about 30 [00:33:50] thank you for the help! [00:47:05] bd808: BotPasswords only work in the API, not via Special:UserLogin. [00:47:27] *nod* I'd mostly figured that out [01:09:17] MusikAnimal: FYI, "bot=true" doesn't assert that the user is a bot. That's "assert=bot". Bot passwords are global across SUL wikis. Bot passwords only work via API action=login, not via the web UI. I tested a bot password with my bot just now, and it worked fine... [01:09:38] that must be what it's using, it's a library not my own code [01:09:53] assert=bot, that is [01:10:40] anomie: with Special:BotPasswords we shouldn't need to change the code at all, right? [01:10:48] just update the password itself? [01:10:52] MusikAnimal: Right. Just your username and password. [01:11:17] username... so whatever name I used at Special:BotPasswords, which for me was MusikBot [01:11:27] oooh, do I need to login in as MusikBot@MusikBot ? [01:11:38] Yes, log in as MusikBot@MusikBot [01:11:46] aha! trying that [01:13:15] hmm [01:13:41] no dice :( [01:15:33] Can you capture the full HTTP requests and responses for the login, and put them in a private paste at https://phabricator.wikimedia.org/paste/ or someplace like that? [01:21:13] brb [01:40:15] anomie: hmm I'll have to figure out how to capture those requests. Need one of those network monitoring programs I guess [01:41:20] MusikAnimal: mediawiki-gateway has log.debug("#{opts[:method].upcase}: #{form_data.inspect}, #{@cookies.inspect}") in the code, so probably just set loglevel to debug? [01:42:13] granted that's only requests, not responses, but it's a start [01:44:55] sorry lots of distractions! I will try that in a moment [01:48:01] anomie: I'm going with visible to: Space S1: Public, Custom policy: just you, that right? [01:48:09] only other "space" is S3: Testing [01:50:21] MusikAnimal: Probably that's right [02:37:50] tgr: got it figured out, it was actually an issue with mediawiki-gateway. Wanted to make sure I thanked you for the help :) [02:38:24] glad to hear you could get it working [02:38:50] mediawiki-gateway by default throws exceptions when there are warnings, instead of simply printing them. It was the recent mediawiki update that introduced a new warning that caused the bot to fail [02:39:17] I'm not sure if I even needed to use Special:BotPasswords yet, as that wasn't the issue [03:50:05] Hey, could someone help me out with a quick experiment on Phabricator? [03:50:11] Could you remove me as a subscriber from https://phabricator.wikimedia.org/T85687 ? [03:54:04] tto: done [07:42:13] https://github.com/Commonists/GlobalReplace isn't working anymore [07:42:22] ERROR: {"warnings":{"main":{"*":"Unrecognized parameter: 'rawcontinue'"}},"login":{"result":"WrongToken"}} [07:42:27] has the API changed? [07:45:10] the format of the login token did [07:45:39] if you weren't URL-encoding it correctly, your code will no longer work [08:22:04] it's no my code [08:22:08] but it's a relevant tool [09:25:28] hello [09:25:30] "WrongToken" error from yesterday (from mw1.27#wmf13 update), Special:BotPasswords does not help, any info what additional changes are needed to get former functionality? (to get bot logged in via api.php) [09:40:26] yeah nerds broke something,. killed all pywikipedia bots including huggle [09:44:44] huggle does not use pywikipedia. [09:45:02] it wasn't encoding the token correctly and it fell over when the token format changed. [09:45:25] stemdA: check that you're percent-encoding all parameters. [09:51:49] thanks MatmaRex, your previous message was actually better :) [09:51:54] [07:45:39] if you weren't URL-encoding it correctly, your code will no longer work [09:52:28] urlencode() around token and everything again just works, thanks [09:55:33] it would probably work without change if there would be no "+\" on end of token, but I guess that "+\" have some important purpose? :) [10:17:50] andre__: hallo andr�, kannst du dir einmal den "WrongToken" anschauen? [10:25:06] kopiersperre, any context, please? [10:25:13] (and why me?) [10:25:27] because you just wen't online [10:25:44] some tools which use the api don't work anymore [10:25:51] e.g. GlobalReplace [10:26:12] Yes, I just went online. [10:26:53] kopiersperre, what are exact steps to reproduce the problem? [10:27:10] login with any password containing utf-8 letters [10:30:31] what happens then? [10:30:38] it fails [10:31:56] do you have an error message? [10:32:02] Could you please file a bug report in Phabricator, if not existing yet? [10:35:14] https://phabricator.wikimedia.org/T126724 [10:35:25] next time i wont bother you on irc [10:37:21] kopiersperre: you don't "bother", it's just that I was confused why you pinged specifically me about it :) [10:37:25] Thanks for putting it into Phabricator, that's the best place for it! [12:55:50] hui [12:56:00] ahoj [12:56:02] status up? [12:56:14] andre__: čaj [12:56:27] andre__: někdy by jsme mohli na pivo [12:58:31] were is the link tu the server performance, please? [13:00:31] Juandev: http://status.wikimedia.org, and #wikimedia-operations is a better channel for downtimes etc. [13:01:03] oh operations? tech channels diseminate prety fast:-) [13:03:01] https://grafana.wikimedia.org [13:04:29] Speaking about Graphics, the last one in our topic here is not working or is extremely positive. [13:06:23] http://graphite.wikimedia.org/render/?width=925&height=556&_salt=1455230924.675&from=-3hours&target=timeShift%28varnish.esams.text.frontend.request.client.method.get.sum%2C%221d%22%29&target=varnish.esams.text.frontend.request.client.method.get.sum [14:48:09] kopiersperre: Re https://phabricator.wikimedia.org/T126724, which version of GlobalReplace are you using? [14:50:01] anomie: 0.6.0 / 0.6.2 [14:51:01] kopiersperre: Can you try it with 0.6.3? [14:52:43] anomie: works, thanks [15:58:31] lol https://fedoraproject.org/w/index.php?title=Bugzilla&diff=prev&oldid=369555 [18:11:42] Hi guys... I'm messing with the WikiMedia API here... How would I go about requesting a page's page title in another language? (e.g. I want the page 'Chile''s title but in zh-CN) Trying to do some batch translation using your API. [18:12:12] wildboarcharlie_: https://www.mediawiki.org/wiki/API:Langlinks [18:12:58] wildboarcharlie_: and this is really not what langlinks are supposed to be used for, check https://www.wikidata.org/wiki/Wikidata:Data_access and http://wiktionary.org/ instead [18:14:12] Nemo_bis: Did not know there was WikiData... Amazing! [18:17:29] :) [18:23:19] Umm... I'm not too good with these things... Can anyone walk me through how to find the WikiData ID by a string? Also, is there a way for the API to just return the translation or should I parse it myself? [18:35:17] wildboarcharlie_: if you go the Wikidata way, the channel #wikidata is probably more helpful [18:35:38] You can most likely use an existing client anyway [18:36:20] Nemo_bis: Hi [19:15:37] Error! [19:16:18] and we're back that quickly. I knew we would [19:45:44] Please help me - see the following errors at aswiki: https://as.wikipedia.org/wiki/%E0%A6%B8%E0%A6%BE%E0%A6%81%E0%A6%9A:General_relativity_sidebar [23:16:35] Hi, who manages local chapters wikis? [23:16:43] ^ on wmf servers [23:18:04] i need some guidance requesting a wiki for my chapter [23:20:33] Alchimista: Krenair is a good person to talk to about requesting a new wiki [23:21:32] the technical details, sure :p [23:21:49] no one is specifically assigned to local chapter wikis afaik [23:22:48] Krenair, well, it's just the usual stuff. I need to open a task, but assign to wich team? Do i need to include some link to some discussion? [23:23:01] you don't assign it to a team [23:23:39] doesn't really map to foundation teams [23:23:48] our current wiki is almost on *read mode*, so even if we do add some info about the request there, it'll provably desapear [23:25:39] you're from WMPT right? [23:25:43] yap [23:25:51] have we discussed this before? [23:26:25] we've talked some time ago on general. now it's decided,the ticket mus go on