注册

ios 发送消息吧,具体不知道哪里出问题,就构造位置消息并发送

Unknown error calling sqlite3_step (19: UNIQUE constraint failed: MessageV1.messageId) eu

2015-10-08 11:25:57.639 SuiBian[12545:3891585] DB Query: INSERT INTO 'MessageV1' ('messageId','conversationChatter','mfrom','mto','isGroup','groupSenderName','requireBeforeSend','requireOnServer','deliveryState','messageBodies','ext','mtimestamp','isRead','isReadAcked','isDeliveredAcked','isAnonymous') VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)

2015-10-08 11:25:57.640 SuiBian[12545:3891585] Unknown error finalizing or resetting statement (19: UNIQUE constraint failed: MessageV1.messageId)

2015-10-08 11:25:57.640 SuiBian[12545:3891585] DB Query: INSERT INTO 'MessageV1' ('messageId','conversationChatter','mfrom','mto','isGroup','groupSenderName','requireBeforeSend','requireOnServer','deliveryState','messageBodies','ext','mtimestamp','isRead','isReadAcked','isDeliveredAcked','isAnonymous') VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)

2015-10-08 11:25:57:641 SuiBian[12545:a383] insert message to db error -- Error Domain=EMFMDatabase Code=19 "UNIQUE constraint failed: MessageV1.messageId" UserInfo=0x17126ca00 {NSLocalizedDescription=UNIQUE constraint failed: MessageV1.messageId}
已邀请:

Half12345

赞同来自: 惜&~鼞

什么版本sdk?发消息报这个error?你这个是重复插入了吧,每次发消息都报这个么?有errorcode么?

要回复问题请先登录注册