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

Is Server RESTful API(Get the userlist) synchronized with RTC login/logout? #304

Closed
michaelchiowong opened this issue Apr 20, 2021 · 5 comments
Labels
waiting for customer response waiting for customer response, or closed by no-reponse bot

Comments

@michaelchiowong
Copy link

Describe the bug
I am developing an online audio chat app with your flutter RTC and RTM api. Plus the Server RESTful API as below:
(agora_rtc_engine: 3.2.1)
(agora_rtm: 0.9.14)
(Server RESTful API: https://docs.agora.io/en/rtc/restfulapi/#/)

We make below process, and figure out that the online RTC userlist from RESTful API is not synchronized with RTM userlist.

To Reproduce
Steps to reproduce the behavior:

  1. user A login to RTC
  2. user A login to RTM
  3. query Server RestFul API (/dev/v1/channel/user/{appid}/{channelName})
  4. user A logout from RTC
  5. user A logout from RTM
  6. Repeat step 1 to 5 multiple times with several users doing the same process at the same time. This will trigger step 7.
  7. We figure out that, the userlist from RTM is different from the userlist from Server Restful API.
    (This behavior looks like the Restful API is somehow has some delay to synchronize the online userlist. If I wait for 2 second, the problem does not exist.)

Expected behavior
What I expect is that, When user X finishes login to RTC and RTM, and when query the Restful API(/dev/v1/channel/user/{appid}/{channelName}), the userlist from Restful API should have user X. But there is chance (very infrequently, when I keep login and logout, user X is not included in the Restful API. But obviously user X has just loginned to RTC.)

Smartphone (please complete the following information):
IOS 14, Android 10,

Thanks.

Michael.

@plutoless
Copy link

plutoless commented Apr 20, 2021

restful api is designed for monitoring and admin operations. it's not recommended to do this on client and coupled with your business logic. as our system is distributed so there may be delays to get up-to-date result yes.

@michaelchiowong
Copy link
Author

michaelchiowong commented Apr 20, 2021

Hi, Plutoless,

Thanks for your reply. So, do you have any suggestion on how to synchronize RTC userlist with RTM userlist in realtime without such synchronization isssue?

@littleGnAl
Copy link
Collaborator

If you still face this issue, please try upgrading to the latest version to see if it works or not.

@littleGnAl littleGnAl added the waiting for customer response waiting for customer response, or closed by no-reponse bot label Dec 7, 2023
Copy link
Contributor

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for customer response waiting for customer response, or closed by no-reponse bot
Projects
None yet
Development

No branches or pull requests

3 participants