Closed tripleee closed 5 years ago
Experimentally tried replacing chatexchange
with the version Smoke Detector is using, but no go.
Wait. Is CE not working for all bots or is this a problem just with PM?
(After seeing the Channels post)
@tripleee The changes required for the OpenID shift have been done in CE, so that surely isn't the problem. I originally suspected that the problem was with Botpy, but another bot which uses it seems to be working fine. Could you try booting PM from a different account? That might solve the problem.
Also, what version of CE and Botpy are you running?
ec2-user@ip-172-31-224-113 PulseMonitor]$ pip freeze | fgrep -e Botpy -e Chat
BotpySE==0.6.5
ChatExchange==0.0.3
I experimentally updated to ChatExchange==0.0.4
and it's looking better, but it's still not working.
Here I'm running from my laptop;
$ sh ./run.PROD
2019-01-09 11:51:39,993:client:Logging in.
Traceback (most recent call last):
File "./Source/startup.py", line 19, in <module>
Pulse("PulseMonitor", email, password, rooms=[65945])
File "/Users/tripleee/charcoal/PulseMonitor/Source/Pulse.py", line 31, in __init__
bot = bp.Bot(nick, commands, rooms, [], "stackexchange.com", email, password)
File "/Users/tripleee/charcoal/PulseMonitor/pmenv/lib/python3.5/site-packages/BotpySE/Bot.py", line 28, in __init__
super().__init__(host, email, password)
File "/Users/tripleee/charcoal/PulseMonitor/pmenv/lib/python3.5/site-packages/chatexchange/client.py", line 76, in __init__
self.login(email, password)
File "/Users/tripleee/charcoal/PulseMonitor/pmenv/lib/python3.5/site-packages/chatexchange/client.py", line 138, in login
self._br.login_site(self.host, email, password)
File "/Users/tripleee/charcoal/PulseMonitor/pmenv/lib/python3.5/site-packages/chatexchange/browser.py", line 158, in login_site
"failed to get `acct` cookie from Stack Exchange OpenID, "
chatexchange.browser.LoginError: failed to get `acct` cookie from Stack Exchange OpenID, check credentials provided for accuracy
The same credentials I have in the file work fine for interactive login, verified with copy+paste.
Hmm.. I'll try running PM from my comp today or tomorrow and will try to troubleshoot the issue.
Looks like logging in with MadMoiselle instead of the regular account works fine. Time to divorce PulseMonitor from Thunder?
As a workaround, MadMoiselle is now running the bot in Charcoal Test.
FYI, Thunder isn't running right now. There were some problems with my instance and I just couldn't find the time to reboot it, so another user is running it right now on a different account. That means that the problem couldn't be related to an account being shared between PM and Thunder.
Turned out to be a simple matter of separately have the account join the community on https://meta.stackexchange.com/ in order to be able to log in to rooms which are not linked to another site in the network.
I switched the bot to run on its own dedicated account now.
Alright, thanks a lot!
Would it make sense to change the bot name to Halflife now that the bot account is named so, so as to avoid confusion?
I have been thinking about that, too. There is already a project named halflife which runs the back-end websocket server that the bot listens to, so this is slightly complicated.
Then why don't we just rename the bot account to PulseMonitor, like before? If that isn't an option, I'll look into modifying Botpy to allow multiple bot names for command pings; the changes shouldn't be very complicated, but I'm not sure when I'll be able to get to it.
IMHO, keeping the ping name as PulseMonitor but naming the bot account Halflife will be confusing. Keeping both as aliases should work, but that will require some modification.
Looks like the login functionality in
chatexchange
is no longer operational.