Avatar

Employee

getRoomInfo only returns valid data (current usage information) when the room is running (active) otherwise you get the "not-active" error.

You can try to make the room "run" for the time required to call getRoomInfo by, for example, publishing an item to the room via the server API.

Note that in any case you don't need to call getSession() for server calls. The "getSession" method returns an authentication session that can be used to generate authentication tokens for clients. For server calls none of this is required (since you are logging in as the account owner)