Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Sandy_Lerman
Level 3
Level 3

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

0 Replies
Raff_
Employee
Employee

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

What type of informations are you trying to query ?

Sandy_Lerman
Level 3
Level 3

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

Raff_
Employee
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).