为什么邀请群成员,群管理员审核结果总是856001错误

android
标签: #<Tag:0x00007fb846d0c860>

(凯凯) #1

我尝试了新建立群,非管理员邀请其他成员,管理员收到邀请信息后,无论是允许还是拒绝总是856001错误,也就是审批失效的错误,难道是因为我建立的群因为相同的群成员还是其他原因吗?


#2

你用的 SDK 版本多少?测试到这个情况的日志给一下

是批量审批了多个成员还是怎样,你具体的测试步骤


(凯凯) #3

通过JMessageClient.addGroupMembers这个方法邀请单个或者多个用户入群,并填写了入群理由,管理员收到了GroupApprovalRefuseEvent入群申请的事件,但是无论调用GroupApprovalRefuseEvent对象的refuseGroupApproval方法还是acceptGroupApproval都是856001返回值,方法里的username我填写的是getFromUsername()


(凯凯) #4

sdk为最新的2.8.0


#5

给一下你上述操作的日志


(凯凯) #6

2019-01-10 15:53:55.032 24365-26295/com.kingcoin:pushcore I/JIGUANG-JMessage: [JMessageAction] [dispatchMessage] rid = 323052573
2019-01-10 15:53:55.038 24272-24284/com.kingcoin D/JIGUANG-JMessage: [b] processIMData type : im_response
2019-01-10 15:53:55.040 24272-24284/com.kingcoin D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:13
2019-01-10 15:53:55.050 24272-26569/com.kingcoin I/JIGUANG-JMessage: [e] eventID = 323052573
2019-01-10 15:53:55.112 24272-26585/com.kingcoin W/JIGUANG-JMessage: [AvatarDownloader] user do not have a avatar yet,can not start download!
2019-01-10 15:53:57.991 24272-24587/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:4370
2019-01-10 15:53:57.992 24272-24587/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
2019-01-10 15:53:57.992 24272-24587/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:18232, sid:19633, juid:15039220153
2019-01-10 15:53:57.992 24272-24587/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
2019-01-10 15:53:58.080 24365-26295/com.kingcoin:pushcore I/JIGUANG-JMessage: [JMessageAction] [dispatchMessage] rid = 18232
2019-01-10 15:53:58.086 24272-24284/com.kingcoin D/JIGUANG-JMessage: [b] processIMData type : im_response
2019-01-10 15:53:58.087 24272-24284/com.kingcoin D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:56


#7

image

是不是重复调了 API 同意


(凯凯) #8

没有啊 我解散该群又新建立一个群再次邀请 还是这个问题


(凯凯) #9

如果重复邀请的话会856003


#10

管理员那边的日志完整的给一下


(凯凯) #11

2019-01-10 16:21:41.790 29123-29320/com.kingcoin D/JIGUANG-JAnalytics: [SessionManager] onPageEnd :{“page_name”:“MessageFragment”,“page_duration”:44.99,“page_end_time”:1547108501,“page_start_time”:1547108456,“page_seq”:70,“page_last_page”:“com.kingcoin.activity.ContactsActivity”,“extra”:{“page_phone_total_memory”:3948285952,“page_start_phone_avaliable_memory”:1455280128,“page_end_phone_avaliable_memory”:1419730944,“page_phone_rx_bytes”:0,“page_phone_tx_bytes”:0,“page_phone_mobile_rx_bytes”:0,“page_phone_mobile_tx_bytes”:0,“page_app_rx_bytes”:10305,“page_app_tx_bytes”:4374}}
2019-01-10 16:21:41.993 29123-29320/com.kingcoin W/JIGUANG-JAnalytics: [SessionManager] please call onPageStart in your activities or fragments with pageName :com.kingcoin.activity.MainActivity
2019-01-10 16:21:42.031 29123-29123/com.kingcoin D/Answers: Logged lifecycle event: STOP
2019-01-10 16:21:42.082 29123-29320/com.kingcoin D/JIGUANG-JAnalytics: [SessionManager] onPageStart :{“page_name”:“com.kingcoin.activity.ChatActivity”,“page_duration”:0,“page_end_time”:1547108501,“page_start_time”:1547108501,“page_seq”:71,“page_last_page”:“MessageFragment”,“extra”:{“page_phone_total_memory”:0,“page_start_phone_avaliable_memory”:1418702848,“page_end_phone_avaliable_memory”:0,“page_phone_rx_bytes”:0,“page_phone_tx_bytes”:0,“page_phone_mobile_rx_bytes”:0,“page_phone_mobile_tx_bytes”:0,“page_app_rx_bytes”:0,“page_app_tx_bytes”:0}}
2019-01-10 16:21:42.112 29123-29495/com.kingcoin D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
2019-01-10 16:21:57.946 29123-29123/com.kingcoin D/JIGUANG-JCore: [PushReceiver] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
2019-01-10 16:21:57.950 29123-29235/com.kingcoin D/JIGUANG-JPush: [PushReceiverCore] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
2019-01-10 16:22:09.962 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:4472
2019-01-10 16:22:09.964 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
2019-01-10 16:22:09.964 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:18302, sid:6867, juid:15039220153
2019-01-10 16:22:09.964 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
2019-01-10 16:22:10.165 29123-29912/com.kingcoin D/JIGUANG-JMessage: [b] processIMData type : im_response
2019-01-10 16:22:10.169 29123-29912/com.kingcoin D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:39
2019-01-10 16:22:10.198 29123-29912/com.kingcoin D/JIGUANG-JMessage: [b] processIMData type : im_response
2019-01-10 16:22:10.200 29123-29912/com.kingcoin D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:60
2019-01-10 16:22:10.200 29123-29912/com.kingcoin D/JIGUANG-JMessage: [SyncRespBaseHandler] sync resp received , uid = 167670277
2019-01-10 16:22:10.201 29123-29912/com.kingcoin I/JIGUANG-JMessage: [SyncRespBaseHandler] [PageReceived] receive page . page no = 1 page = cn.jmessage.biz.j.a.b$i@a471661
2019-01-10 16:22:10.201 29123-29912/com.kingcoin I/JIGUANG-JMessage: [SyncRespBaseHandler] [PageReceived] cached page no[1]
2019-01-10 16:22:10.201 29123-29912/com.kingcoin D/JIGUANG-JMessage: [SyncRespBaseHandler] [PageReceived]start convLocalize conv pages. total page 1
2019-01-10 16:22:10.203 29123-32055/com.kingcoin I/JIGUANG-JMessage: [SyncEventRespHandler] id = 167670277_29028031 kind = 3 fullUpdate = false event meta list totalCount = 1
2019-01-10 16:22:10.204 29123-32055/com.kingcoin D/JIGUANG-JMessage: [SyncRespBaseHandler] conversation localize finished. status code = -100
2019-01-10 16:22:10.204 29123-32055/com.kingcoin I/JIGUANG-JMessage: [SyncEventRespHandler] id = 167670277_8 kind = 6 fullUpdate = false event meta list totalCount = 1
2019-01-10 16:22:10.204 29123-32055/com.kingcoin D/JIGUANG-JMessage: [SyncRespBaseHandler] conversation localize finished. status code = -100
2019-01-10 16:22:10.205 29123-32055/com.kingcoin I/JIGUANG-JMessage: [SyncEventRespHandler] send sync event ack back == syncEventKey is 1547108450886
2019-01-10 16:22:10.216 29123-32055/com.kingcoin I/JIGUANG-JMessage: [SyncRespBaseHandler] sync resp finished. code = 0 desc = Success
2019-01-10 16:22:10.216 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:4472
2019-01-10 16:22:10.217 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
2019-01-10 16:22:10.217 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:18304, sid:6867, juid:15039220153
2019-01-10 16:22:10.217 29123-29427/com.kingcoin D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100


(凯凯) #12

log.txt (195.8 KB)


(jinfengf) #13

856001这个表示审批已经被处理过了,你看下能不能收到GroupApprovedNotificationEvent


(jinfengf) #14

还有你掉审批失败后,获取群成员看看,那个用户是不是已经入群了


(凯凯) #15

非常抱歉 群管理员没有收到GroupApprovedNotificationEvent事件,而且成员也没有被邀请进去,目前只有群管理员添加可以


(凯凯) #16

我新建立的群只有2成员邀请不可能立马被处理,即使拒绝邀请人的也没有收到GroupApprovalRefuseEvent事件


(jinfengf) #17

提供一下失败情况下的群组id,和操作管理员的uid


(凯凯) #18

groupid:29028179 uid:167670277 username:210012


(jinfengf) #19

问题找到了,是acceptGroupApproval里username,appkey填错了,要填被审批的用户


(jinfengf) #20