Articles in this section
Category / Section

Why do I Get this Error 'User with your user id already exists'?

Published:
1 min read

"User with your User Id Already Exists" Error

HTML5 Virtual Classroom strictly checks for unique user IDs in the Class Launch URL.

Here is an example Teacher and Student launch URLs that shows unique User IDs for each user:

https://api.braincert.com/v2/getclasslaunch?apikey=XXXX&class_id=34315&userId=19&userName=Teacher&isTeacher=1&courseName=education&les sonName=tester&lessonTime=60&isRecord=0

https://api.braincert.com/v2/getclasslaunch?apikey=XXXX&class_id=34315&userId=20&userName=Student&isTeacher=0&courseName=education&lessonName=tester&lessonTime=60&isRecord=0

This issue may also happen when you have unique UserIDs, but have double slash in the URL. This would make the API endpoint hard to read your UserID and you will see error 'User with your user id already exists'. You need to format the JSON output in your code, and remove the double slash.

It needs to look like this:

|| Please note that the parameter userId is case-sensitive. If you pass this as UserID or userID, it will not work.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Access denied
Access denied