netease-im / nim-harmony-demo

云信IMSDK,鸿蒙使用Demo
MIT License
24 stars 2 forks source link

会话拉取问题 #3

Closed trhyl closed 5 months ago

trhyl commented 6 months ago
[IM][ConversationService]获取会话列表 [开始] offset:0 number: 50
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM]MessageUtils[Exception]转换最后一条消息的raw摘要 TypeError: Cannot read property senderId of undefined({})
[IM][ConversationService]获取会话列表 [结果] {"success":true,"offset":1702555792852,"finished":false,"list":[{"id":"cjl|1|cjl69","unreadCount":0,"sortOrder":1713270093674,"createTime":1713270093674,"updateTime":1713270093674,"isLocal":false,"type":1,"avatar":"","mute":false,"stickTop":false,"groupIds":[""]}
[IM][MessageService]查询历史消息 [开始] 参数{"conversationId":"cjl|1|cjl69","limit":50}
[IM]MessageService[Exception]nimSdk查询历史消息 V2NIMError: protocol timeout({"name":"V2NIMError","code":192004,"desc":"protocol timeout","message":"protocol timeout","detail":{"ser":4,"reason":"Packet Timeout: ser 4 cmd v2GetMessageList","timetag":1713271215293,"cmd":"v2GetMessageList"}})
[IM][MessageService]查询历史消息 [结束]

今天用了最新的SDK,仍然存在反馈过的2个问题:

  1. 会话列表的lastMessage SDK定义类型与实际反馈的不一致。官方定义:V2NIMLastMessage? 实际返回:空字符串
  2. 消息列表请求一直超时。
hongru1227 commented 6 months ago

@trhyl 问题2 最新代码已经解决。问题1 我们还在排查

trhyl commented 6 months ago

@hongru1227 问题2最新的版本测试没问题。

trhyl commented 6 months ago
[IM][LoginService] 用户手动登录---------- 登录[begin] ----------
[IM][LoginService] 登录配置:{"timeout":3000,"forceMode":false,"retryCount":1,"authType":0,"syncLevel":0}
[IM][LoginService] 切换登录状态:未登录 -> 登录中...
[IM][LoginService] 切换连接状态:未连接 -> 连接中...
[IM][LoginService] 切换连接状态:连接中... -> 已连接
[IM][LoginService] 切换登录状态:登录中... -> 已登录
[IM][LoginService] 用户手动登录---------- 登录成功 ----------
[IM][LoginService] 用户手动登录---------- 登录[end]  ----------
[IM][ConversationService]获取会话列表 [开始] offset:0 number: 50
[IM][ConversationService]获取会话列表 [结果] {"success":true,"offset":0,"finished":true,"list":[]}
[IM][ConversationService]获取会话列表 [开始] offset:0 number: 50
[IM][ConversationService]获取会话列表 [结果] {"success":true,"offset":0,"finished":true,"list":[]}

@hongru1227 发现一个新问题。重新登录App之后,请求会话列表失败。这很奇怪,使用Demo登录账户成功以后,CreateConversation,报错102404。感觉整个系统不稳定。

hongru1227 commented 6 months ago

@trhyl 这个问题我们会优先排查。

trhyl commented 5 months ago

@hongru1227 请问新版本最近能提供验证了吗

hongru1227 commented 5 months ago

@trhyl 本周内提供

hongru1227 commented 5 months ago

@trhyl 最新0.6.0 版本发布,问题已经修复