Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Server agora java can't use uid ?? #15

Open
tientai241102 opened this issue Jul 16, 2021 · 2 comments
Open

Why Server agora java can't use uid ?? #15

tientai241102 opened this issue Jul 16, 2021 · 2 comments

Comments

@tientai241102
Copy link

Why Server agora java can't use uid ??
I was test use uid but token was generated can't use to join channel.
If I don't use uid and uid has value 0, This token was generated can use to join channel.

I don't know any server has this problem but if you has problem with token, I can set uid = 0.

@yuna-ran
Copy link

According to the FAQ of string type user names, currently users can not mix parameter types within the same channel.

A common reason for the issue may due to the mixed parameter types(String and int) for user ID. Agora server will generate a user ID(as a 32-bit signed integer) if the user ID value is not assigned or set to 0 according to the Java API reference.

As a workaround, you may:

  • Modify code logic and assign users only with uids with a 32-bit unsigned integer with a value ranging from 1 to (2^32-1).
  • If it's necessary to use String type for uid, please assign all users with uids with String type.

@tientai241102
Copy link
Author

oh. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants