hipbot icon indicating copy to clipboard operation
hipbot copied to clipboard

Loading of lobby data takes too long

Open glennmartinez opened this issue 11 years ago • 3 comments

why does it need to do this? It take like 20 minutes and then gives me an error.

Is there any way to bypass this? i only want to connect to one room

glennmartinez avatar Feb 27 '14 07:02 glennmartinez

Hi @glennmartinez, How many users do you have? For me it takes 5-10 seconds to initialize with 100+ users and 50+ rooms. What kind of error do you get?

bartoszkopinski avatar Feb 27 '14 08:02 bartoszkopinski

Hi @bartoszkopinski , 800+ users 150+ rooms.

just keeps calling this for ages [DEBUG][2014-02-28 12:08:42 +1100] TRYING stanzacbs... [DEBUG][2014-02-28 12:08:42 +1100] TRYING message/iq/presence/cbs...

Error ends up being auth error.

Why does it need to do this and can I disable it? i only need it for one room?

glennmartinez avatar Feb 28 '14 01:02 glennmartinez

@glennmartinez The fragment you pasted is just some pings for the server to keep the connection alive. Hipbot should operate normally at this point.

Please make sure you set up proper credentials from your account page (http://*.hipchat.com/account/xmpp), ie. JID and a password. The error message would be helpful as well.

As it goes for loading the users, let me add an option to disable fetching VCards for each user. This should speed up the process.

In the meantime you can check if that's the problem by disabling it manually or monkey patching this segment: https://github.com/pewniak747/hipbot/blob/master/lib/hipbot/adapters/hipchat/initializer.rb#L50

I'll keep you updated. Thanks for the issue.

bartoszkopinski avatar Mar 03 '14 19:03 bartoszkopinski