-
Notifications
You must be signed in to change notification settings - Fork 27
Lita 4.2.0 and current lita-hipchat bot won't connect without debug true #24
Comments
Can you provide a Gemfile and configuration file that reproduces this? |
|
Lita works as expected for me with the above details, though of course I had to change the username and password for my own account. Does it work without turning debug on if you specify rooms explicitly instead of using |
I tried joining one specific room with it on and then again with it off and had no luck with it off. |
I just ran into this, worked fine on Friday on my test box, today I had to enable debug mode for the connection to work. Here's the installed gems too if that helps: Gems included by the bundle:
|
Yes, I am running into this same problem. (Running with Last log line is: Looks like some sort of timing issue.... |
I'd love to just blame it on the xmpp4r gem (and that probably will end up being where the bug is) but I haven't been able to reproduce this yet. :( |
Had another play without debug; attempt finally times out with:
|
OK, I think I've worked around the race condition. When Conveniently, lita happens to fire an event in-between the connect and room-list calls, so this simple hack seems to fix things for me:
|
Interesting! Thank you for debugging! I suppose this means that debug mode being turned on fixing it is just because it adds just enough delay to prevent the race condition. |
Ya exactly. Wouldn't be the first time I've seen turning on logging magically "fix" race conditions 😄 |
Hey, everyone! I added some synchronization code that may address this issue. Please try the new lita-hipchat 3.0 and see if you're still getting this crash. Thank you and apologies for how long this issue has been open! |
Thanks Jimmy, appreciate the effort! Unfortunately, it's still getting stuck in "Connecting to HipChat" at least for us, hehe :D Edit: As a sidenote, when running our bot on any development machine, it connects fine even with debug: false. But when I run it on our beefy production server, it only connects with debug: true. |
Frustrating! There must be a race condition elsewhere. Or perhaps the way I implemented the synchronization didn't actually work... |
Just updated to 4.2.0 and I'm still running into the same condition with debug being required. If I can provide more information, please let me know. |
I'm running into an issue with the 'debug' mode if it is undefined or set to 'false' then the client won't connect.
The text was updated successfully, but these errors were encountered: