crisp-im / crisp-sdk-ios

:package: Crisp iOS SDK, add a chat in any iOS app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/ios-sdk/
Other
43 stars 18 forks source link

CrispChat showing Error Starting chat page and error while showing ChatView. #93

Closed AnishaLamichhane11 closed 7 months ago

AnishaLamichhane11 commented 7 months ago

The issue I am facing is, the chat view is shown and then it freezes some times when I try to send message. And after I try it several times it shows error Starting chat. This issue is not in web or android, it only occurs in iOS. I am using version 2.4.4

nesium commented 7 months ago

Hi @AnishaLamichhane11. Thanks for your report.

When you say "it freezes" do you mean that the whole app where the SDK is embedded in hangs? If so could you pause in the debugger and send a screenshot of what the stack looks like?

If it's just the ChatView that doesn't react as it is supposed to, what does it show during the freeze, before it says "error Starting Chat"?

AnishaLamichhane11 commented 7 months ago

There are actually two different issues.

  1. The app freezes (only crispchat view), it only happens sometimes. I cannot recreate this issue at the moment, will send you screenshot as soon as it occurs again.
  2. The crisp chat loads and cannot load the crispchat view and retry again view is shown. I have attached the video from the app. Do check it out.

https://github.com/crisp-im/crisp-sdk-ios/assets/157456092/6d519c2c-d76d-4ff4-a486-562769eeea13

FYI : We are using SwiftUI

nesium commented 7 months ago

Thanks, @AnishaLamichhane11.

For 2. you should see a message in the Xcode console. Something along the lines of…

[Crisp] Error: Expected to decode ...

Could you please share what that message says?

AnishaLamichhane11 commented 7 months ago

For 2. This is the message shown in Xcode console. [Crisp] Error: TimeoutError()

baptistejamin commented 7 months ago

There TImeout error is likely due to a network issue, a VPN or something like this. Try using the web version, using Safari on your simulator and you'll see

AnishaLamichhane11 commented 7 months ago

I don't think this is a network issue.

  1. In mobile app (iOS) the chatview freezes as shown in the screenshot below. IMG_7009 First the crispchat is working fine and after multiple chats it freezes . Only this chat screen is freezed and the overall app is not affected. Also no debug message is printed in Xcode console.

  2. In safari the chat is working fine. (The below recording is done in the safari app of same device.) https://github.com/crisp-im/crisp-sdk-ios/assets/157456092/ca72c3a2-c970-4b31-806a-cdeeb8145f36

nesium commented 7 months ago

Thanks for confirming that this is not a network issue @AnishaLamichhane11.

I believe that we've been able to reproduce these issues and are investigating the cause.

AnishaLamichhane11 commented 7 months ago

Could you let me know how long will it take to resolve ? We are in urgency for the release of the app.

nesium commented 7 months ago

Issue 1 should be fixed in 2.4.5.

I will update this ticket once we know more about issue 2.

nesium commented 7 months ago

Hi @AnishaLamichhane11. We've done some digging on issue 2. which did not lead to a conclusion so far unfortunately.

Does this issue affect only existing conversations, i.e. conversations where one or more messages have been exchanged or does this happen for brand new conversations as well?

If the former is true (existing conversations) could you please share your Website ID and an affected Session ID with us? You can copy the Session ID after selecting the conversation in app.crisp.chat

Screenshot 2024-02-05 at 10 33 51

You can share these IDs privately in the chat on crisp.chat and reference this issue.

If you have the chance and access to one of the tools, you could also record the traffic by using either Proxyman or Charles and share the transcript with us. That would help a lot. Please make sure to enable SSL Proxying for *.crisp.chat.

AnishaLamichhane11 commented 7 months ago

Hello @nesium After upgrading to the version 2.4.5 the issue 2 (chat view is freezed ) is fixed. And about the issue 1, after the update we haven't faced that issue. Thanks

nesium commented 7 months ago

Thanks for the update @AnishaLamichhane11. Glad to hear that one of the issues is fixed. I'm going to close this ticket then. In case that you encounter the other issue again please reach out with the information as mentioned above.