« first day (307 days earlier)      last day (3514 days later) » 

4:08 AM
@hichris123 (and others), I think you are encountering the same error I am, where Smokey stops responding in some rooms. It started when you started watching multiple rooms for commands, right? !!/alive??
Is your error: ConnectionError: HTTPConnectionPool(host='chat.stackoverflow.com', port=80): Max retries exceeded with url: /events (Caused by <class 'httplib.BadStatusLine'>: '')
Unfortunately, I don't have a solution yet. But, if you are encountering the same error, that'd be a good thing for both of us (less bugs to hunt)
I'm positive I'm sending valid data (room id and an fkey).
 
@Andy not sure. @Undo getting any errors?
It would make sense though.
 
I don't know enough about ChatExchange though to know how to troubleshoot it effectively
and, I can't make the error occur on command. It "just happens" (consistently) but sometimes not for hours after I've started the bot
 
6
A: Python: requests.exceptions.ConnectionError. Max retries exceeded witth url

Eugeny LoyLooking at stack trace you've provided your error is caused by httplib.BadStatusLine exception, which, according to docs, is: Raised if a server responds with a HTTP status code that we don’t understand. In other words something that is returned (if returned at all) by proxy server cannot b...

@Andy ^
Maybe the websocket trys to kill the connection?
Wait, hold on a sec @andy.
Is your bot running?
 
No, but I can fire it up
I'm also not using a proxy
 
K
I'm wondering if it has to do with https
Just try going on chat using https (in your browser), and telling the bot to do something.
 
4:19 AM
I don't think so. The browser code only has https on the openid parts. Otherwise, it's coded to use http, here
 
Well, yeah, but what if the SE server has a fit with SSL?
So then it sends out a weird http packet?
I dunno, random guess here.
 
The bot doesn't use my browser though. It uses Python. How would me logging in over https in Firefox matter?
 
@Andy maybe the chat server has something misconfigured on the SE side?
I dunno, just try it and tell me I'm wrong. ;P
 
I'm firing it up. While waiting, I found Joel was testing in the Sandbox
in Sandbox on Meta Stack Exchange Chat, 14 hours ago, by Joel Spolsky
| ̄ ̄ ̄ ̄|
| NO. |
| HARD |
| PASS! |
|____|
(\__/) ||
(•ㅅ•) ||
/   づ
 
Lol
 
4:25 AM
Nope. That didn't trigger the error
 
OK, then I'm wrong. ;)
 
4:45 AM
@ProgramFOX, I know you've done some work with ChatExchange too. Could you see if the conversation above has some steps I should be taking to troubleshoot?
 
 
4 hours later…
8:59 AM
@Andy You could try to debug ChatExchange and wait until the exception occurs.
I will run SmokeDetector too (on the chat.SE and chat.MSE sandbox), to see what happens.
 
9:17 AM
in Sandbox, 16 secs ago, by FOX 9000
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
Now let's see what happens :D
!!/alive?
 
@ProgramFOX Of course
 
!!/reboot
(doesn't reply to !!/alive? in Tavern, rebooting)
 
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
!!/alive?
 
@ProgramFOX Of course
 
10:06 AM
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
Ugh, my SmokeDetector test copy has thrown an error, but it's a ValueError, not the one Andy meant.
 
10:26 AM
!!/alive?
Hmm...
!!/alive?
Apparently not?
!!/reboot
!!/alive?
!!/reboot
@Undo SmokeDetector broke here (still alive in Tavern), and !!/reboot doesn't work. Can you manually restart please?
Also, I'm going to add the ability to use !!/reboot in the Tavern. Currently this is not yet possible because chat user IDs are different there.
 
 
2 hours later…
12:09 PM
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
 
SmokeDetector wasn't alive anymore, starting my own.
 
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
 
!!/alive?
 
@ProgramFOX Of course
 
!!/alive
 
12:24 PM
@ManishEarth Can two different ChatExchange Clients use the same watcher method?
 
room.watch_socket(watcher)
roomm.watch_socket(watcher)
 
well, yeah
 
But it does not watch roomm.
I don't get notified if someone posts a message there.
 
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
 
12:26 PM
Trying it again.
!!/alive?
 
@ProgramFOX Of course
 
@ManishEarth Well, for some reason it works fine now.
 
blocked
 
Ha, now it posts that here when I use it in the Tavern.
 
unblocked
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
 
12:36 PM
!!/unblock
!!/block
!!/alive?
 
[ SmokeDetector ] SmokeDetector started at rev 'b7cc7a2' (@ProgramFOX)
 
!!/alive?
 
@ProgramFOX Of course
 
!!/block 30
 
blocked
 
12:40 PM
!!/alive?
 
@ProgramFOX Of course
 
@Undo There is a new SmokeDetector revision to pull.
 
12:58 PM
@Andy My SD copy in the Sandbox is still running fine without an error... No idea when the ConnectionError will occur.
 
1:09 PM
!!/alive?
 
@ProgramFOX Of course
 
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
!!/alive?
 
@ProgramFOX Of course
 
!!/reboot
(doesn't reply to !!/alive? in Tavern)
 
1:12 PM
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
!!/alive?
 
@ProgramFOX Of course
 
!!/alive?
 
@ProgramFOX Of course
 
1:41 PM
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
!!/alive?
 
@ProgramFOX Of course
 
!!/reboot
 
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
@Undo Sometimes it restarts but then it does not reply to !!/alive? in the Tavern, but when rebooting, it works fine again.
 
2:06 PM
[ SmokeDetector ] All-caps title: APPLICATION OF THE RIEMANN ROCH THEOREM on math.stackexchange.com
 
2:51 PM
[ SmokeDetector ] All-caps title: MY ANDROID PHONE IS DOMANT BECAUSE I CAN'T ACCESS MY ACCOUNT on security.stackexchange.com
 
3:28 PM
!!/alive?
?
!!/alive?
Hmm...
!!/reboot
But in the Tavern, it replies to !!/alive?.
!!/alive?
 
3:49 PM
@Undo Weird stuff is happening with SmokeDetector (see above messages). Might this have to do something with the new Bayesian stuff? I temporary ran SmokeDetector and I got many ValueErrors, might be related to that.
 
@undo Smokey is broken.
Superpings. :D
 
@hichris123 As far as I know, superpings are being used if a user hasn't yet visited a room, so pinging Undo with a superping wouldn't change anything, or am I missing something?
 
@ProgramFOX nice work.
 
@hichris123 Thanks!
 
@ProgramFOX Superpings also send a notification directly to his inbox (whereas it may take a half hour to show up in their inbox, or maybe it won't show up in their inbox at all).
 
4:01 PM
@hichris123 Oh, I see. I'm wondering whether it would show up now, because the inbox is broken: meta.stackexchange.com/q/239675/229438
 
Oh, argh, right.
Welp, I guess we'll see. ;P
 
4:39 PM
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
!!/alive?
... huh?
!!/alive?
 
[ SmokeDetector ] Bad keyword detected, Phone number detected: Girl Boy Vashikaran Specialist+91-9950211818 on english.stackexchange.com
 
Smokey is back... why is my command not working?
!!/alive?
 
Who knows.
 
[ SmokeDetector ] SmokeDetector started at rev b7cc7a2 (@Undo)
 
4:42 PM
Again?
Well then.
!!/alive?
 
!!/alive?
!!/reboot
!!/block
!!/unblock
 
!!/alive?
Going to debug SmokeDetector, if the Bayesian stuff causes the problems, I'll know about it fast enough.
 
5:24 PM
Still running without errors.
 
huh
 
I suspect it fails at some specific posts (don't know which posts though), so I'll have to wait for one like that.
 
5:46 PM
@hichris123 @Undo Because Smokey is still running, I tried some manual stuff and I found out that it returns a ValueError if the text does not contain valid words.
I'm going to comment out the lines that throw the Error.
 
@ProgramFOX If what text? And what valid words?
 
@hichris123 I tried to put some foreign characters in it, and it failed.
 
hmm, okay.
Is that for the Bayesian stuff?
 
@hichris123 Yep
 
5:50 PM
Hmm... I'm going to use a try-except block in Smokey instead of removing the lines that throw the Error. Perhaps other errors occur if I remove them.
Feel free to change the 1 if it throws an error, it was just a quick fix, as I have to go now.
See you!
 
6:47 PM
I'm back.
Going to see what happens if I remove the lines that throw the ValueError.
@Andy It looks like SmokeDetector throws a ValueError due to the Bayesian code, not a ConnectionError.
 
Hm. That's unfortunate for me then. That means I still have to troubleshoot this connection error :(
Wait, even on the non bayesian SD? Or was that code all merged and there is just one version again?
 
@Andy Yes, even there. On the non-bayesian version, it only does not post the titles, but it still processes them.
And I get a TypeError if I try to remove the errory lines in the Bayesian code, so I think we'll have to stay with the try-except block.
 
7:04 PM
@hichris123 @Undo I decided to return 0.1 if there is a ValueError, looked like a good return value to me; if Bayesian cannot parse it, it is not very likely to be a high-quality post.
 
7:22 PM
k
 
7:43 PM
!!/alive?
 

« first day (307 days earlier)      last day (3514 days later) »