Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to send message after survey #126

Open
Frigeraltt opened this issue Dec 29, 2021 · 0 comments
Open

Failed to send message after survey #126

Frigeraltt opened this issue Dec 29, 2021 · 0 comments

Comments

@Frigeraltt
Copy link

Frigeraltt commented Dec 29, 2021

Steps to reproduce:

  • Open conversation
  • Wait till agent response
  • Force resolve conversation with close button
  • Waiting till post-conversation survey bot will ask about leaving some feedback
  • Close chat fragment
  • Reopen chat fragment
  • Finish post-conversation survey

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant