关于环信聊天导出记录遗漏的问题

在手机APP(android)上集成了环信聊天,然后通过后台跑批去 调用环信接口 导出聊天记录(根据时间戳导出),但导出来的聊天记录 与 手机APP上显示的聊天记录有差异-------导出的记录偶尔少一两条,望大神们 帮帮忙!
已邀请:

beyond - imgeek运营

赞同来自: admin 大帅哥嗨嗨嗨

那条消息确实没有存进去,刚才处理了一下,现在已经可以查到了!重新导一下就行!

beyond - imgeek运营

赞同来自: 大帅哥嗨嗨嗨 yingzi8544

那两条导不到的消息,现在可以了!
 这是消息保存过程中出问题导致的,这个错误之前缺少监控。
对于这个问题,第一,我们会加强监控,第二,增加针对这种异常,会增加自动修复功能,这个正在开发中,预计近期会上线。

 

lizg

赞同来自: 大帅哥嗨嗨嗨

没有的数据是哪个时间段,发的什么消息

beyond - imgeek运营

赞同来自:

appkey是?那个时间戳的服务端导不出来,方便贴一下导出的数据截图和手机端截图吗?

大帅哥嗨嗨嗨

赞同来自:

appkey:924593450#smart ,那个手机端是中间有2条记录在 导出的数据中 没有!

大帅哥嗨嗨嗨

赞同来自:

应该是 1434604660251-1434607255298这个时间段的,2条数据,一条叫“JJ变变变”,还有一条忘记了,都是在这个时间段!

yingzi8544

赞同来自:

遇到了同样的问题

大帅哥嗨嗨嗨

赞同来自:

那个消息为啥没存进去啊,几率大不大呢?

大帅哥嗨嗨嗨

赞同来自:

刚刚查了下,貌似还是没有查出来!ObjectNode queryStrNode = factory.objectNode();
        queryStrNode.put("limit", 1000L);
        queryStrNode.put("ql", "select * where timestamp > 1434604651953 and timestamp < 1434611366774" ); 这样查询有问题吗

geekontheway

赞同来自:

持续关注!!!

lengmo

赞同来自:

持续关注!!!!另外注意查询语句:环信官方文档这样规定:不能使用 and、or 等操作符来组成这种查询ql=select * where timestamp<1403164734226 and timestamp>1403166586000。

日月双悬

赞同来自:

服务器端导出聊天记录的问题。Response报500错,请问是什么问题和原因。谢谢
 
Response Body: {"error":"unsupported_service_operation","timestamp":1470624721108,"duration":0,"exception":"org.apache.usergrid.services.exceptions.UnsupportedServiceOperationException","error_description":"Service operation not supported"}
[framework] 2016-08-08 10:52:06,433 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -1323 [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - ===========Response End===========
Status: 500
Response Body: {"error":"unsupported_service_operation","timestamp":1470624721108,"duration":0,"exception":"org.apache.usergrid.services.exceptions.UnsupportedServiceOperationException","error_description":"Service operation not supported"}

lizg

赞同来自:

@日月双悬  url贴出来看看
 

日月双悬

赞同来自:

[framework] 2016-08-08 10:52:06,073 - com.easemob.server.example.comm.TokenGenerator -963  [main] DEBUG com.easemob.server.example.comm.TokenGenerator  - New token: YWMtFC6GmF0TEeaHd10nVZV71QAAAVedDfa9wC6PCQ8wVvRI-LmlyC3gJ_uPJ8M
[framework] 2016-08-08 10:52:06,073 - com.easemob.server.example.comm.TokenGenerator -963  [main] DEBUG com.easemob.server.example.comm.TokenGenerator  - New token expires: 5183999000
[framework] 2016-08-08 10:52:06,073 - com.easemob.server.example.comm.TokenGenerator -963  [main] INFO  com.easemob.server.example.comm.TokenGenerator  - Token has been refreshed with YWMtFC6GmF0TEeaHd10nVZV71QAAAVedDfa9wC6PCQ8wVvRI-LmlyC3gJ_uPJ8M and will be expired at 1475808725073.
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - =============Request=============
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - Method: DELETE
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - URL: https://a1.easemob.com/yue-hea ... sages
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - Header: [Content-Type:application/json] [Authorization:Bearer YWMtFC6GmF0TEeaHd10nVZV71QAAAVedDfa9wC6PCQ8wVvRI-LmlyC3gJ_uPJ8M] 
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - Body: 
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - Query: [limit:20] [ql:select * where timestamp<1470624725138] 
[framework] 2016-08-08 10:52:06,074 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -964  [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - ===========Request End===========
[framework] 2016-08-08 10:52:06,432 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -1322 [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - =============Response=============
[framework] 2016-08-08 10:52:06,433 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -1323 [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - Status: 500

日月双悬

赞同来自:

        String currentTimestamp = String.valueOf(System.currentTimeMillis());
        ResponseWrapper chatResponse  = (ResponseWrapper)chat.exportChatMessages(20L, null, "select * where timestamp<"+currentTimestamp);

//        ResponseWrapper userResponse  = (ResponseWrapper)user.getIMUsersByUserName("py0011");
//        
//        String username = ((ObjectNode) userResponse.getResponseBody()).get("entities").get(0).get("username").asText();
        

        System.out.println(chatResponse); 
在main 方法中这样写不知道有没有什么问题?建立用户和获取用户没有问题,但导出聊天记录就报500错误?

lizg

赞同来自:

将url 打印出来

日月双悬

赞同来自:

//a1.easemob.com/yue-health/healthchat/chatmessages

lizg

赞同来自:

这个url 没错,ql 语句怎么写的? 一起打印出来看看

lengmo

赞同来自:

你可以把request的请求打印出来

lengmo

赞同来自:

把时间戳打印出来看看,是不是这样子的,下面是我自己调用的ql语句,你参考参考一下// 1465180245995----2016/6/6 10:30:45
//       
String nextTimestamp = "1465180245995";
String ql = "select * where timestamp>"+nextTimestamp;

日月双悬

赞同来自:

ql语句这样写的: ResponseWrapper chatResponse  = (ResponseWrapper)chat.exportChatMessages(20L, null, "select * where timestamp<"+currentTimestamp);
 
 

日月双悬

赞同来自:

QQ截图20160810143523.png

 

lengmo

赞同来自:

你用的是httpclient还是Jersey的方式

日月双悬

赞同来自:

httpclient 方式。看到有的帖子上说用get方法,但接口没有提供get 方法,只有export方法。

lengmo

赞同来自:

//这是我修改过的接口,参考一下
public class EasemobChatMessage extends EasemobRestAPI implements ChatMessageAPI {

    private static final String ROOT_URI = "/chatmessages";
 
    public Object exportChatMessages(Long limit, String cursor, String query) {
        String url = getContext().getSeriveURL() + getResourceRootURI();
        HeaderWrapper header = HeaderHelper.getDefaultHeaderWithToken();
        
        QueryWrapper queryWrapper = QueryWrapper.newInstance().addQueryLang(query).addLimit(limit).addCursor(cursor);
        //匿名类
        return getInvoker().sendRequest(HTTPMethod.METHOD_GET, url, header, new BodyWrapper() {
            
            @Override
            public Boolean validate() {
                // TODO Auto-generated method stub
                return true;
            }
            
            @Override
            public ContainerNode<?> getBody() {
                // TODO Auto-generated method stub
                return null;
            }
        }, queryWrapper);
        
    }

CharlesHe

赞同来自:

我们也碰到了, 拉取的记录有丢失, 拉取记录不及时,昨天早上10点的记录, 今天下午14点都拉不到!!!
 
盼尽快解决!!!

日月双悬

赞同来自:

果然HTTPMethod.METHOD_DELETE 改成 HTTPMethod.METHOD_GET  就可以了,Response Body: {"action":"get","path":"/chatmessages","uri":"http://a1.easemob.com/yue-heal ... ot%3B,"entities":[{"uuid":"f8dde39a-5d10-11e6-b0ba-bbd172df6d03","type":"chatmessage","created":1470623815753,"modified":1470623815753,"timestamp":1470623815112,"from":"admin","msg_id":"227886734652740224","to":"admin","chat_type":"chat","payload":{"bodies":[{"type":"txt","msg":"4444"}]}},{"uuid":"9b4ae4ba-5d12-11e6-a65f-e712cba6acca","type":"chatmessage","created":1470624517755,"modified":1470624517755,"timestamp":1470624517239,"from":"admin","msg_id":"227889750248264084","to":"zhang0011","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"qqqqqq\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"qqqqqq\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"qqqqqq\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"9fbf55da-5d12-11e6-8aa2-4f1b959609c5","type":"chatmessage","created":1470624525229,"modified":1470624525229,"timestamp":1470624524571,"from":"admin","msg_id":"227889781709734292","to":"zhang0011","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"[:s]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"[:s]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"[:s]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"a46425ca-5d12-11e6-af26-df85027162a6","type":"chatmessage","created":1470624533020,"modified":1470624533020,"timestamp":1470624532293,"from":"admin","msg_id":"227889814903456148","to":"admin","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"6666\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"6666\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"6666\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"a662b4ea-5d12-11e6-b5f4-cdfb2018bae8","type":"chatmessage","created":1470624536366,"modified":1470624536366,"timestamp":1470624535923,"from":"admin","msg_id":"227889830426575252","to":"admin","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"[({)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"[({)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"[({)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"bbb1442e-5d12-11e6-83c6-7bb448be4cea","type":"chatmessage","created":1470624572113,"modified":1470624572113,"timestamp":1470624570980,"from":"admin","msg_id":"227889980993700244","to":"py0011","chat_type":"chat","payload":"{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"44444[(F)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"44444[(F)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"44444[(F)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"bfcf09ce-5d12-11e6-a168-ad46e42aee5e","type":"chatmessage","created":1470624579019,"modified":1470624579019,"timestamp":1470624578681,"from":"admin","msg_id":"227890014095147412","to":"py0011","chat_type":"chat","payload":"{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"[(|)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"[(|)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"[(|)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"}],"timestamp":1470811970308,"duration":20,"count":7}
[framework] 2016-08-10 14:52:57,331 - com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker -1437 [main] DEBUG com.easemob.server.example.comm.invoker.HttpClientRestAPIInvoker  - ===========Response End===========
Status: 200
Response Body: {"action":"get","path":"/chatmessages","uri":"http://a1.easemob.com/yue-heal ... ot%3B,"entities":[{"uuid":"f8dde39a-5d10-11e6-b0ba-bbd172df6d03","type":"chatmessage","created":1470623815753,"modified":1470623815753,"timestamp":1470623815112,"from":"admin","msg_id":"227886734652740224","to":"admin","chat_type":"chat","payload":{"bodies":[{"type":"txt","msg":"4444"}]}},{"uuid":"9b4ae4ba-5d12-11e6-a65f-e712cba6acca","type":"chatmessage","created":1470624517755,"modified":1470624517755,"timestamp":1470624517239,"from":"admin","msg_id":"227889750248264084","to":"zhang0011","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"qqqqqq\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"qqqqqq\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"qqqqqq\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"9fbf55da-5d12-11e6-8aa2-4f1b959609c5","type":"chatmessage","created":1470624525229,"modified":1470624525229,"timestamp":1470624524571,"from":"admin","msg_id":"227889781709734292","to":"zhang0011","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"[:s]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"[:s]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"zhang0011\",\"bodies\":[\"from\":\"py0011\",\"to\":\"zhang0011\",{\"from\":\"py0011\",\"to\":\"zhang0011\",\"type\":\"txt\",\"msg\":\"[:s]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"a46425ca-5d12-11e6-af26-df85027162a6","type":"chatmessage","created":1470624533020,"modified":1470624533020,"timestamp":1470624532293,"from":"admin","msg_id":"227889814903456148","to":"admin","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"6666\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"6666\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"6666\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"a662b4ea-5d12-11e6-b5f4-cdfb2018bae8","type":"chatmessage","created":1470624536366,"modified":1470624536366,"timestamp":1470624535923,"from":"admin","msg_id":"227889830426575252","to":"admin","chat_type":"chat","payload":"{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"[({)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"[({)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"py0011\",\"to\":\"admin\",\"bodies\":[\"from\":\"py0011\",\"to\":\"admin\",{\"from\":\"py0011\",\"to\":\"admin\",\"type\":\"txt\",\"msg\":\"[({)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"bbb1442e-5d12-11e6-83c6-7bb448be4cea","type":"chatmessage","created":1470624572113,"modified":1470624572113,"timestamp":1470624570980,"from":"admin","msg_id":"227889980993700244","to":"py0011","chat_type":"chat","payload":"{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"44444[(F)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"44444[(F)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"44444[(F)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"},{"uuid":"bfcf09ce-5d12-11e6-a168-ad46e42aee5e","type":"chatmessage","created":1470624579019,"modified":1470624579019,"timestamp":1470624578681,"from":"admin","msg_id":"227890014095147412","to":"py0011","chat_type":"chat","payload":"{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"[(|)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"ext\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"[(|)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"weichat\":{\"from\":\"admin\",\"to\":\"py0011\",\"bodies\":[\"from\":\"admin\",\"to\":\"py0011\",{\"from\":\"admin\",\"to\":\"py0011\",\"type\":\"txt\",\"msg\":\"[(|)]\"},\"function(val) {\n\tfor (var i = 0; i < this.length; i++) {\n\t\tif (this[i].name == val.name)\n\t\t\treturn i;\n\t}\n\treturn -1;\n}\",\"function(val) {\n\tvar index = this.indexOf(val);\n\tif (index > -1) {\n\t\tthis.splice(index, 1);\n\t}\n}\"],\"originType\":\"webim\"}}}"}],"timestamp":1470811970308,"duration":20,"count":7}

日月双悬

赞同来自:

问题得到解决,谢谢!

lengmo

赞同来自:

这个问题我也出现过,私聊环信的客服,客服给出的原因是:北京集群消息存储服务器的磁盘存在损坏,目前运维同事正在替换有问题的磁盘,拉取聊天历史接口暂时无法使用,部分历史消息存在丢失的可能。


 

日月双悬

赞同来自:

老实说,这个demo程序还是有很多问题的。我也自己改了里面一些东西才最后调通。希望环信这边能尽快改进。另外a1.easemob.com 这个服务器如果作为我们正式集成使用的服务器,那环信更应该维护好这个服务器,否则如何能满足服务呢

要回复问题请先登录注册

知识价值的认可,源自您的赞赏

扫描二维码,你的支付将由imGeek代收后转给对方

×