[03:29:57] hello [03:37:44] Request from xx.xx.xx.xx via cp3064 frontend, Varnish XID 505350583
Upstream caches: cp3064 int
Error: 400, Bad Request at Sun, 16 Aug 2020 03:35:36 [03:38:54] I want to ask why I am receiving 400 response all the time [03:39:21] the query is like https://zh.wikipedia.org/w/api.php?action=query&format=json&list=categorymembers&cmlimit=500&cmtitle=Category:%E6%9E%81%E9%AB%98%E9%87%8D%E8%A6%81%E5%BA%A6%E6%95%B0%E5%AD%A6%E6%9D%A1%E7%9B%AE [03:43:44] Can you be a bit more descriptive about "all the time", is it every single request, or just receiving them a lot of the time? [03:44:42] does it also happen with https://zh.wikipedia.org/w/api.php?action=query&format=json&list=categorymembers&cmlimit=max&cmtitle=Category:%E6%9E%81%E9%AB%98%E9%87%8D%E8%A6%81%E5%BA%A6%E6%95%B0%E5%AD%A6%E6%9D%A1%E7%9B%AE ? [03:45:20] you mean changing to cmlimit to max, I'll have a try [03:46:10] it also happens [03:46:56] I query through a program, using luasec library [03:47:34] Is it giving a proper user-agent on its request? does it work when you query it though your web browser? [03:48:08] the same program worked on March 15, but doesn't work now [03:48:32] it does work through web browser, so I don't know why [03:49:10] my UA is set to "mediawikilua 0.2" [03:49:59] but I tried to change it to my web browser's UA, it still gets 400 [03:51:47] recently I also used the same setup to query https://zh.wikipedia.org/w/api.php?action=query&prop=categories&titles=%E8%91%89%E5%95%8F&cllimit=5000&clshow=!hidden&format=json , it works fine [03:52:44] https://zh.wikipedia.org/w/api.php?action=query&format=json&list=categorymembers&cmlimit=500&cmtitle=Category:%E6%9E%81%E9%AB%98%E9%87%8D%E8%A6%81%E5%BA%A6%E6%95%B0%E5%AD%A6%E6%9D%A1%E7%9B%AE is the exact query you are using, with no other parameters, correct? [03:52:57] https://github.com/AlexanderMisel/mwtest/blob/type/science_data.lua#L20 [03:53:10] my code is open source on the above link [03:53:48] I set the accept-language and ua, and uses tlsv1.2 [04:03:08] I found out the problem [04:03:31] I didn't urlencode the category title [04:04:06] that'll do it [04:05:24] in the past, even I don't encode it, the server also gives the correct answer [04:05:39] thank you for helping me [04:06:10] it's possible that something changed in your libraries [04:07:03] it's on server and I didn't update my libraries [04:07:17] interesting [04:07:40] do you know when it stopped working? [04:07:43] so it's more possible that the wikimedia setup changed [04:08:51] my last time running it is on March 15, 2020. as it's not a program that need to run very often, I didn't run it until yesterday [11:44:48] Any netops in here? [11:45:20] cdanis or ayounsi perhaps? [11:49:52] nvm, found a ticket [13:01:36] Josve05a: sorry, I don't have OTRS access [18:13:01] Hey guys! Who can help me clear up some messup with some toolsadmin maintainers list ? [18:14:07] I mistook my gdrive-to-commons app for google-drive-to-commons tool and removed myself as a maintainer of it. Also added "owner of abandoned tools" as a maintainer on `gdrive-to-commons` [18:14:24] is there a way I can get back to `gdrive-to-commons` as a maintainer ? [18:14:46] https://toolsadmin.wikimedia.org/tools/id/gdrive-to-commons [18:16:40] tonythomas: ask on #wikimedia-cloud so that WMCS folks have a highter chance of seeing your message [18:18:08] Majavah: done :) [19:15:14] tonythomas: if you don't get a reply, fill a ticket :-) [19:15:25] done already [19:15:40] okay then :) [23:05:42] https://en.wikiversity.org/wiki/Special:LintErrors/missing-end-tag?namespace=102 [23:06:09] So I think it will be straightforward to find the missing tag and match things up [23:06:13] It's isn't [23:06:33] Because matching up the templates , introduces other errors [23:07:05] Why can't someone sit down and actually code a parser that doesn't relay on individual users having to play hunt the quirk on a FREQUENT basis ? [23:07:18] Becaue it gets very very very tiresome [23:07:32] *becuase [23:10:55] because we tried that and it produced a worse outcome overall? [23:19:57] I love the way he says it like "code a parser" is a simple thing [23:42:56] well, coding "a parser" isn't that hard [23:43:40] now, once you start wanting a parser able to support all the constructs used on 19 years of written wikitext... [23:59:11] Well, quite [23:59:16] But the latter was basically implied :P