调 report API 查询不到结果


(YTOTW) #1

{“msg_id”:67553994619003326,“registration_ids”:[“170976fa8ab72ed44b3”],“date”:“2018-07-30”}
这个请求时我在2018-07-28请求的,今天查还是查询不到;


请问下关于极光单个发送状态查询
调用送达状态查询接口返回3002 Msgid does not exist.
#2

查不到报了什么错误?返回信息是什么?将 date 设置为 07-28 看看?


(YTOTW) #3

@Lris
{“msg_id”:42784196687882358,“registration_ids”:[“160a3797c82374d4c9d”],“date”:“2018-07-30”}
我这边请求在控制台是能看到的,手机也有接收到,但是查询状态的时候返回
{“error”:{“code”:3002,“message”:“Msgid does not exist.”}}
我发了好几条,只有第一条能查询状态,
还有我这边是北京机房的,怎么修改域名


(YTOTW) #4

@Lris这条是我刚发的,是30号的也是报错


#5

北京 URL 地址:https://bjapi.push.jiguang.cn/v3/report/status/message

你调 API 的时候所传的应用的 Appkey 值和你消息推送的是否一致,截图看下你调 API 时所传 Appkey 值(不要提供mastersecret)

提供你的完整的请求参数、请求时间点、返回的错误信息、返回错误的时间点


(YTOTW) #6

@Lris
appKey:1ac2b88f7319dab1fb9ffd82

    **请求推送:**
        2018-07-30 10:12:42,077 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:121) - Send request - POST https://api.jpush.cn/v3/push
    2018-07-30 10:12:42,077 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:123) - Request Content - {"platform":["android","ios"],"audience":{"registration_id":["160a3797c82374d4c9d"]},"notification":{"alert":"测试推送信息2","ios":{"alert":"测试推送信息2","extras":{"factoryId":"10002","msgId":"1","type":"2"},"badge":"+0","sound":""},"android":{"alert":"测试推送信息2","extras":{"factoryId":"10002","msgId":"1","type":"2"}}},"options":{"sendno":1599038347,"apns_production":false}}
    2018-07-30 10:12:42,509 Thd-1 DEBUG (cn.jiguang.common.resp.ResponseWrapper:40) - JPush API Rate Limiting params - quota:600, remaining:599, reset:60
    2018-07-30 10:12:42,510 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:192) - Succeed to get response OK - responseCode:200
    2018-07-30 10:12:42,510 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:193) - Response Content - {"sendno":"1599038347","msg_id":"58546795383725772"}
    2018-07-30 10:12:42,565 Thd-1  INFO (com.jiguang.JPushUtils:112) - Got result - {"msg_id":58546795383725772,"sendno":1599038347,"statusCode":0}
    **请求查询:**
    2018-07-30 10:13:59,481 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:121) - Send request - POST https://report.jpush.cn/v3/status/message
    2018-07-30 10:13:59,481 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:123) - Request Content - {"msg_id":42784196687882358,"registration_ids":["160a3797c82374d4c9d"],"date":"2018-07-30"}
    2018-07-30 10:14:00,031 Thd-1 DEBUG (cn.jiguang.common.resp.ResponseWrapper:40) - JPush API Rate Limiting params - quota:2400, remaining:2399, reset:60
    2018-07-30 10:14:00,031 Thd-1  WARN (cn.jiguang.common.connection.NativeHttpClient:199) - Got error response - responseCode:400, responseContent:{"error":{"code":3002,"message":"Msgid does not exist."}}
    2018-07-30 10:14:00,031 Thd-1 ERROR (cn.jiguang.common.connection.NativeHttpClient:203) - Your request params is invalid. Please check them according to error message.
    2018-07-30 10:14:00,043 Thd-1 ERROR (com.jiguang.JReportsUtil:55) - Error response from JPush server. Should review and fix it. 
    {}
    	at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:235)
    	at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:99)
    	at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:86)
    	at cn.jpush.api.report.ReportClient.getMessagesStatus(ReportClient.java:115)
    	at cn.jpush.api.JPushClient.getMessageStatus(JPushClient.java:265)
    	at com.jiguang.JReportsUtil.getMessageStatus(JReportsUtil.java:42)
    	at com.jiguang.JReportsUtil.main(JReportsUtil.java:68)
    2018-07-30 10:14:00,079 Thd-1  INFO (com.jiguang.JReportsUtil:56) - HTTP Status: 400
    2018-07-30 10:14:00,080 Thd-1  INFO (com.jiguang.JReportsUtil:57) - Error Code: 3002
    2018-07-30 10:14:00,080 Thd-1  INFO (com.jiguang.JReportsUtil:58) - Error Message: Msgid does not exist.

(YTOTW) #7

@Lris


这个查询状态是调用sdk的,请问怎么更换域名


#8

java SDK : 常见问题 - JPush 合集(持续更新)

ClientConfig clientConfig = ClientConfig.getInstance();
clientConfig.setPushHostName("hostName");

(YTOTW) #9

@Lris
还是一样

    2018-07-30 10:28:33,647 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:121) - Send request - POST https://report.jpush.cn/v3/status/message
    2018-07-30 10:28:33,648 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:123) - Request Content - {"msg_id":42784196687882358,"registration_ids":["160a3797c82374d4c9d"],"date":"2018-07-30"}
    2018-07-30 10:28:34,146 Thd-1 DEBUG (cn.jiguang.common.resp.ResponseWrapper:40) - JPush API Rate Limiting params - quota:2400, remaining:2399, reset:60
    2018-07-30 10:28:34,147 Thd-1  WARN (cn.jiguang.common.connection.NativeHttpClient:199) - Got error response - responseCode:400, responseContent:{"error":{"code":3002,"message":"Msgid does not exist."}}
    2018-07-30 10:28:34,147 Thd-1 ERROR (cn.jiguang.common.connection.NativeHttpClient:203) - Your request params is invalid. Please check them according to error message.
    2018-07-30 10:28:34,158 Thd-1 ERROR (com.jiguang.JReportsUtil:58) - Error response from JPush server. Should review and fix it. 
    {}
    	at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:235)
    	at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:99)
    	at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:86)
    	at cn.jpush.api.report.ReportClient.getMessagesStatus(ReportClient.java:115)
    	at cn.jpush.api.JPushClient.getMessageStatus(JPushClient.java:265)
    	at com.jiguang.JReportsUtil.getMessageStatus(JReportsUtil.java:45)
    	at com.jiguang.JReportsUtil.main(JReportsUtil.java:71)
    2018-07-30 10:28:34,170 Thd-1  INFO (com.jiguang.JReportsUtil:59) - HTTP Status: 400
    2018-07-30 10:28:34,170 Thd-1  INFO (com.jiguang.JReportsUtil:60) - Error Code: 3002
    2018-07-30 10:28:34,170 Thd-1  INFO (com.jiguang.JReportsUtil:61) - Error Message: Msgid does not exist.

#10

你测试获取一下 28 号的消息的状态,给一下日志,时间设置为 28

{“msg_id”:67553994619003326,“registration_ids”:[“170976fa8ab72ed44b3”],“date”:“2018-07-28”}

如果 28 号有几条消息都获取不到,均测试并提供下日志与 MessageID值


(YTOTW) #11

@Lris

**msg_id:54043195737146075**
    2018-07-30 10:41:10,298 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:121) - Send request - POST https://report.jpush.cn/v3/status/message
    2018-07-30 10:41:10,298 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:123) - Request Content - {"msg_id":54043195737146075,"registration_ids":["160a3797c82374d4c9d"],"date":"2018-07-28"}
    2018-07-30 10:41:10,800 Thd-1 DEBUG (cn.jiguang.common.resp.ResponseWrapper:40) - JPush API Rate Limiting params - quota:2400, remaining:2398, reset:27
    2018-07-30 10:41:10,801 Thd-1  WARN (cn.jiguang.common.connection.NativeHttpClient:199) - Got error response - responseCode:400, responseContent:{"error":{"code":3002,"message":"Msgid does not exist."}}
    2018-07-30 10:41:10,801 Thd-1 ERROR (cn.jiguang.common.connection.NativeHttpClient:203) - Your request params is invalid. Please check them according to error message.
    2018-07-30 10:41:10,811 Thd-1 ERROR (com.jiguang.JReportsUtil:56) - Error response from JPush server. Should review and fix it. 
    {}
    	at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:235)
    	at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:99)
    	at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:86)
    	at cn.jpush.api.report.ReportClient.getMessagesStatus(ReportClient.java:115)
    	at cn.jpush.api.JPushClient.getMessageStatus(JPushClient.java:265)
    	at com.jiguang.JReportsUtil.getMessageStatus(JReportsUtil.java:43)
    	at com.jiguang.JReportsUtil.main(JReportsUtil.java:69)
    2018-07-30 10:41:10,823 Thd-1  INFO (com.jiguang.JReportsUtil:57) - HTTP Status: 400
    2018-07-30 10:41:10,823 Thd-1  INFO (com.jiguang.JReportsUtil:58) - Error Code: 3002
    2018-07-30 10:41:10,824 Thd-1  INFO (com.jiguang.JReportsUtil:59) - Error Message: Msgid does not exist.
**msg_id:67553994618695513**
    2018-07-30 10:43:12,999 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:121) - Send request - POST https://report.jpush.cn/v3/status/message
    2018-07-30 10:43:13,000 Thd-1 DEBUG (cn.jiguang.common.connection.NativeHttpClient:123) - Request Content - {"msg_id":67553994618695513,"registration_ids":["160a3797c82374d4c9d"],"date":"2018-07-28"}
    2018-07-30 10:43:13,528 Thd-1 DEBUG (cn.jiguang.common.resp.ResponseWrapper:40) - JPush API Rate Limiting params - quota:2400, remaining:2399, reset:60
    2018-07-30 10:43:13,528 Thd-1  WARN (cn.jiguang.common.connection.NativeHttpClient:199) - Got error response - responseCode:400, responseContent:{"error":{"code":3002,"message":"Msgid does not exist."}}
    2018-07-30 10:43:13,528 Thd-1 ERROR (cn.jiguang.common.connection.NativeHttpClient:203) - Your request params is invalid. Please check them according to error message.
    2018-07-30 10:43:13,538 Thd-1 ERROR (com.jiguang.JReportsUtil:56) - Error response from JPush server. Should review and fix it. 
    {}
    	at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:235)
    	at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:99)
    	at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:86)
    	at cn.jpush.api.report.ReportClient.getMessagesStatus(ReportClient.java:115)
    	at cn.jpush.api.JPushClient.getMessageStatus(JPushClient.java:265)
    	at com.jiguang.JReportsUtil.getMessageStatus(JReportsUtil.java:43)
    	at com.jiguang.JReportsUtil.main(JReportsUtil.java:69)
    2018-07-30 10:43:13,549 Thd-1  INFO (com.jiguang.JReportsUtil:57) - HTTP Status: 400
    2018-07-30 10:43:13,549 Thd-1  INFO (com.jiguang.JReportsUtil:58) - Error Code: 3002
    2018-07-30 10:43:13,550 Thd-1  INFO (com.jiguang.JReportsUtil:59) - Error Message: Msgid does not exist.

#12

请稍等,我反馈一下


#13

经查,确实是我们的 bug,近期会修复,请稍等。


(YTOTW) #14

这个大概多久能修复,因为我们这边需要上线,会有影响


#15

我们尽量在本周内修复完毕,但不能 100% 保证,修复完成我会及时在社区告知你


(YTOTW) #16

好的,辛苦了


#17

该问题已于 8 月 7 日解决,很抱歉,通知晚了。