LP-Messaging / Android-Messaging-SDK

LivePerson Android Messaging SDK
https://www.liveperson.com
28 stars 24 forks source link

Failed to send message after survey #126

Open Frigeraltt opened 2 years ago

Frigeraltt commented 2 years ago

Steps to reproduce:

And now we're unable to send messages, "Failed to send message" shows.

In logs, when closing chat fragment, while bot waits for our response:


 [[ConnectionStateMachine_DisconnectingState]]  [ERR_00000146] Task CloseConnectionTask failed

In logs, when trying to send message:


org.json.JSONException: Value Bad Request, Conversation is close at body of type java.lang.String cannot be converted to JSONObject
        at org.json.JSON.typeMismatch(JSON.java:101)
        at org.json.JSONObject.getJSONObject(JSONObject.java:624)
        at com.liveperson.api.request.PublishEvent$Response.<init>(PublishEvent.java:133)
        at com.liveperson.messaging.network.socket.requests.ChatStateChangeRequest$1.parse(ChatStateChangeRequest.java:49)
        at com.liveperson.messaging.network.socket.requests.ChatStateChangeRequest$1.parse(ChatStateChangeRequest.java:40)
        at com.liveperson.infra.network.socket.SocketHandler$1.parseIncomingData(SocketHandler.java:222)
        at com.liveperson.infra.network.socket.SocketHandler$1.run(SocketHandler.java:183)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:233)
        at android.os.HandlerThread.run(HandlerThread.java:67)

And even after finishing post-conversation survey, conversation is in active state

LP SDK: 5.8.0 compileSDKVersion : 31

Any ideas why this happens?