Skip to content

[BUG] AtElem parse error #1050

@gao746700783

Description

@gao746700783

OpenIM SDK Version

3.8.2

OpenIM Server Version

3.8.0

SDK Platform

Android SDK

Device Model

xiaomi 10s

Operating System Version

android 13

Bug Description and Steps to Reproduce

when accept a new message ,it throws parsing data error,as below

2025-11-04 09:56:14.065 14378-14570 GoLog com.hongxin.openim.demo I 2025-11-04 01:56:14.063 �[31mERROR�[0m �[31m[PID:14378] �[0m [v3.8.3] [conversation_msg/conversation_msg.go:265] Parsing data error: {"operationID": "41c73d47-1591-448e-8cdd-6d7abd9a18fb", "type: ": 106, "msg": {"clientMsgID":"200d4f0daccee3ad422bdf4a4e6823db","serverMsgID":"caa541b9f9c52e7dab19600112c7c774","createTime":1762221374037,"sendTime":1762221373903,"sessionType":1,"sendID":"17155015135","recvID":"XXX","msgFrom":100,"contentType":106,"senderPlatformID":5,"senderNickname":"XXX1","seq":19,"isRead":false,"status":2,"ex":"{\"tenantID\":7906019982501000}","atTextElem":{"text":" @XXX aaaddd     ","atUserList":["XXX"],"atUsersInfo":[{"atUserID":"XXX","groupNickname":"***"}],"quoteMessage":{"createTime":0,"sendTime":0,"sessionType":0,"msgFrom":0,"contentType":0,"senderPlatformID":0,"seq":0,"isRead":false,"status":0},"isAtSelf":false},"attachedInfoElem":{"groupHasReadInfo":{"hasReadCount":0,"groupMemberCou 2025-11-04 09:56:14.065 14378-14570 GoLog com.hongxin.openim.demo I nt":0},"isPrivateChat":false,"burnDuration":0,"hasReadTime":0,"isEncryption":false,"inEncryptStatus":false}}, "error": "==> github.com/openimsdk/openim-sdk-core/v3/pkg/utils.JsonStringToStruct()@79: json Unmarshal failed: json: cannot unmarshal string into Go struct field AtTextElem.quoteMessage of type sdk_struct.MsgStruct"}

Screenshots Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions