[01:08:42] Anybody have any hints for using BotPasswords? I have tried simply copying the exact code in https://www.mediawiki.org/wiki/API:Login#Python with my account, and it returns "Unable to continue login. Your session most likely timed out." every time. [01:12:30] DominicBM: I think the most effective way to get that solved is either to create a ticket or to ask on a mailing list. Many more people will read it who are sleeping now and not realtime [01:12:46] sounds like something about persisting the cookie doesnt work or so [01:12:58] but since you are using the example code.. it's probably a bug [01:14:09] It's my first time attempting, so I wasn't assuming it was necessarily a bug. I wonder if anyone else can reproduce? [01:14:58] Or it's just outdated documentation, and someone knows the right way. [01:15:09] I'm sure they will. It's just that you need to get people to read it and for most of them it's like 4am [01:15:27] DominicBM: I am trying [01:17:12] Thanks! [01:18:00] ok, it works for me [01:19:05] I just did a small edit to move the values out to variables [01:19:07] https://www.mediawiki.org/wiki/API:Login/Sample_code_1#Python [01:20:25] you should be able to use that code just changing the values of the first two variables [01:24:20] that said, although it's not 4 am here [01:24:31] it's nearly 3:30, so I'm going to disconnect [01:24:57] Okay, hm. I'm still confused, but retrying everything, I guess. I appreciate it. :/ [01:26:31] maybe you didn't copy the bot password in full? [01:26:42] that would be tricky to notice [01:27:25] Would that not be a different error message? [01:27:26] "Unable to continue" looks like not providing the token [01:27:37] hmm I expect it would be, indeed [01:28:06] anyway, you are going the right path [01:28:17] first checking that it works with the know-to-work code [01:29:53] night! [01:49:19] It seems to work in a fresh PAWS session with no other code. I think it's something about persisting the session across my Python code in this script, so problem is on my end somewhere. [03:08:12] Solved my problem. A third-party bug on the platform I was using. https://anvil.works/forum/t/preserving-session-cookies-between-http-requests/4552