Got "idNotUnique" error when create a room with same parameters

99 views
Skip to first unread message

james.tran

unread,
May 16, 2013, 5:18:57 PM5/16/13
to bigbluebu...@googlegroups.com
Hello,

In my JSF application, I tried to create a new room with the following piece of code:

String create_parameters = "meetingID=" + urlEncode("DEMO") + "&name=" + urlEncode("DEMO");
String checksum             = checksum("create" + create_parameters + Constants.BBB_SALT);

try {

    // Attempt to create a meeting
    System.out.println("CREATE URL: " + base_url_create + create_parameters + "&checksum=" + checksum);
    String xml = getURL(base_url_create + create_parameters + "&checksum=" + checksum);
    System.out.println("CREATE RESULT: " + xml);
    doc = parseXml(xml);

} catch (Exception e) {
    e.printStackTrace();
}

The 1st person to join the meeting doesn't face any issues. However, when I open another browser to connect to the same room, I ran into the "idNotUnique" error. On the console, I saw the following lines:

INFO: CREATE RESULT: <response><returncode>SUCCESS</returncode><meetingID>Demo</meetingID><attendeePW>UEkJhBu0</attendeePW><moderatorPW>tRfwEr1v</moderatorPW><createTime>1368738548081</createTime><hasBeenForciblyEnded>false</hasBeenForciblyEnded><messageKey></messageKey><message></message></response>
INFO: CREATE RESULT: <response><returncode>FAILED</returncode><messageKey>idNotUnique</messageKey><message>A meeting already exists with that meeting ID.  Please use a different meeting ID.</message></response>

So as you can see, the 2 URLs called to create the room is the same. However, on the 2nd call, I got an error instead of a "duplicateWarning"... I'd be very grateful if you could show me how to tackle this problem.

Best regards,
James Tran 

james.tran

unread,
May 16, 2013, 5:49:20 PM5/16/13
to bigbluebu...@googlegroups.com
I also tried to calculate the checksum and manually copy and paste the "Create URL" into 2 tabs on my Chrome browser. On the 1st tab, I saw the XML success result. On the 2nd tab, I saw the XML failed result. Somehow, my BBB server didn't recognise my parameters as the same ones from the previous call :S...

Fred Dixon

unread,
May 16, 2013, 5:57:01 PM5/16/13
to BigBlueButton-users
Hi James,

In the future can you post developer related questions to bigbluebutton-dev.
 

BigBlueButton will let you call create multiple times for the same meetingID, the parameters must always match.  This makes it easy to code the logic where a user joins you always call create.  This way, you don't have to worry if a meeting exists or not -- the first create will create one, and the subsequent creates have no side effect.

What is happening is that your not passing a attendeePW or moderatorPW, so BigBlueButton is generating one for you.  This works for the first call.

However, when you make the second call, the moderator and viewer passwords are generated anew and don't match the existing ones for that meetingID. Hence the error.

If you let BigBlueButton generate the attendeePW or moderatorPW, you'll need to use it in subsequent calls.  


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton



On Thu, May 16, 2013 at 5:49 PM, james.tran <dungt...@gmail.com> wrote:
I also tried to calculate the checksum and manually copy and paste the "Create URL" into 2 tabs on my Chrome browser. On the 1st tab, I saw the XML success result. On the 2nd tab, I saw the XML failed result. Somehow, my BBB server didn't recognise my parameters as the same ones from the previous call :S...

--
You received this message because you are subscribed to the Google Groups "bigbluebutton-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-u...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 




james.tran

unread,
May 16, 2013, 6:20:10 PM5/16/13
to bigbluebu...@googlegroups.com
Hello Fred,

Sorry for posting on the wrong group :). I thought the other group was meant for people who're contributing to the BBB itself :P.

Regarding my problems, thank you very much for giving me this solution. I have been scratching my head for hours. However, I must say this is a bit counter-intuitive... I think you should mention this in the tutorial. In my application, the user goes directly into the meeting room without typing or even knowing the password. I expected the call to return the auto-generated password created in the previous call so that I don't have to remember the password for each meeting.

Best regards,
James Tran
Reply all
Reply to author
Forward
0 new messages