webex-android-sdk icon indicating copy to clipboard operation
webex-android-sdk copied to clipboard

Can't get history message

Open duybuiappliedmesh opened this issue 4 years ago • 3 comments

I used this function to get list message by room_id

messageClient.list(roomId!!, before, 50, null) { result ->

But I got an issue after back and request list few times

I got this error OkHttp https://conv-r.wbx2.com/... Parse json error: java.lang.ClassCastException: android.net.Uri$StringUri cannot be cast to java.lang.String E/ServiceReqeust:263: OkHttp https://conv-r.wbx2.com/... HTTP Error: WebexError[errorCode=UNEXPECTED_ERROR, message=Illegal body in the response, ]

Not sure why this happen, I don't touch anything, just go back and request few times, then issue will happen

duybuiappliedmesh avatar Feb 01 '21 17:02 duybuiappliedmesh

This is an example of using messageClient.list

        messageClient.list(roomId, null, 50, null, CompletionHandler->{
            if(CompletionHandler.isSuccessful()){
                Log.d(" Result 1","!!!!!!FETCHED MESSSAGES!!!!!!" );
            }
            else{
                Log.d(" Result 2","!!!!!!FAILED TO FETCH MESSAGES!!!!!!");
            }
        });

If you need further assistance troubleshooting your code please open a ticket with the developer support team by sending your details to [email protected].

jeffmars avatar Feb 01 '21 17:02 jeffmars

This is an example of using messageClient.list

        messageClient.list(roomId, null, 50, null, CompletionHandler->{
            if(CompletionHandler.isSuccessful()){
                Log.d(" Result 1","!!!!!!FETCHED MESSSAGES!!!!!!" );
            }
            else{
                Log.d(" Result 2","!!!!!!FAILED TO FETCH MESSAGES!!!!!!");
            }
        });

If you need further assistance troubleshooting your code please open a ticket with the developer support team by sending your details to [email protected].

Yes, I already used this function and can get list message. BUT as my investigate, I found this issue above only happen when I join a call (mode auto record is open) Let me sum my step

  1. Join a room chat, send any message
  2. Close app, then join room chat again to load list message (this step still OK)
  3. Join a call with 5 minutes for example, then hang up. After some minutes (let say 15 - 20min)
  4. Join room chat again => this issue happen

Does it related with mode auto record? I send you a log of 2 room I tested (one is join room chat only -> no issue, other one is join both chat and call -> issue)

json_join_chat_only.txt json_room_joined_call.txt

duybuiappliedmesh avatar Feb 01 '21 17:02 duybuiappliedmesh

excus me, how to make sending message and receive message to another participans on meeting room sdk.

RahmanEckyRetnaldi avatar Dec 22 '21 07:12 RahmanEckyRetnaldi