Expand my Community achievements bar.

I'm having trouble with the server2server scripts...

Avatar

Former Community Member

I'm trying to call getRoomInfo from python but it throws an exception.

My code looks something like:

account = "%s/%s" % (lccsSettings.HOST, lccsSettings.ACCOUNT)

am = accountmanager(account)

am.login(lccsSettings.USER, lccsSettings.PASSWORD)

am.getRoomInfo( 'leakrunnyauk' ) # leakrunnyauk is the name of the room

It gets a response of:

<result>

     <status code="error" subcode="not-active"/>

</result>

I'm probably doing something silly, any idea what it might be?

-sandy

3 Replies

Avatar

Employee

Nothing silly. It's telling you that the room is currently not running.

What type of informations are you trying to query ?

Avatar

Former Community Member

Oh, I had assumed that as long as the room exists ( which it does) that it would return the salient data.

For example, dateCreated, bytesUp, bytesDown, etc...all make sense even when a room isn't currently in use.

I'm trying to get the usercount, so I can just assume it's 0 if it throws the exception.

Thanks,

-sandy

Avatar

Employee

Yes, room not running == 0 users in the room

Currently getRoomInfo returns live data (and actually, dateCreated is the

date the room started, not when you executed createRoom).