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

[BUG] When calling getAdvancedHistoryMessageList in a group, it generates a large number of get_users_info requests #2831

Open
cipchk opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@cipchk
Copy link

cipchk commented Nov 4, 2024

OpenIM Server Version

3.8.1

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

Here is the request code:

await OpenIM.iMManager.messageManager.getAdvancedHistoryMessageList(
      conversationID: conversationInfo.conversationID,
      count: 20,
      startMsg: _isFirstLoad ? null : messageList.firstOrNull,
      lastMinSeq: _isFirstLoad ? null : lastMinSeq,
    );

Requesting 20 records generates more than 40 get_users_info requests, see PNG:

image

This is the specific log of one of the requests and responses, and there are over 40 similar ones. The only difference is that they all have different userIDs:

I/GoLog   (30089): ]	[flutter/Android]                                 	[network/http_client.go:96]                       	ApiRequest                                        	{"operationID": "1730706607309", "url": "https://xxx.com/api/user/get_users_info", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiIxMDAwMCIsIlBsYXRmb3JtSUQiOjIsImV4cCI6MTczODA2MTgwMSwibmJmIjoxNzMwMjg1NTAxLCJpYXQiOjE3MzAyODU4MDF9.N6Qs5IFqiK8qAEOAFvxa96b3Sw8o9RBxyw89GRC-Jzs", "body": "{\"userIDs\":[\"10563\"]}"}
I/GoLog   (30089): ]	[flutter/Android]                                 	[network/http_client.go:131]                      	ApiResponse                                       	{"operationID": "1730706607309", "url": "https://xxx.com/api/user/get_users_info", "status": "200 OK", "body": "{\"errCode\":0,\"errMsg\":\"\",\"errDlt\":\"\",\"data\":{\"usersInfo\":[{\"userID\":\"10563\",\"nickname\":\"Натали\",\"faceURL\":\"\",\"ex\":\"\",\"createTime\":1725811767651,\"appMangerLevel\":0,\"globalRecvMsgOpt\":0}]}}"}

Screenshots Link

No response

@cipchk cipchk added the bug Categorizes issue or PR as related to a bug. label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants