Recent searches
No recent searches
Android SDK Failing to start new conversations
Posted Jan 09, 2025
Hello,
I am trying to integrate the Android Zendesk Messaging SDK with Ultimate AI Chat bot. I can authenticate the user properly but can's send metadata yet but another issue is that for a few days now when I press New Conversation in the chat list I get the error Toast message from the image bellow.
This worked fine till a few days ago. From time to time it works properly but after creating a conversation I get this message and won't be able to create any other afterwards. Also, I can open existing chats and send messages in there but obviously I need to be able to also create new conversations.
I am using Zendesk Messaging SDK for Android version “2.26.1” (I've also tried the last one but with no luck). I am using a pixel 9 emulator with API version 34 and Google Play capabilities.
I can paste bellow some logs I see when pressing the button:
2025-01-09 19:44:17.774 19681-19681 ConversationsListStateH xx.android.en D Create New Conversation State: LOADING
2025-01-09 19:44:17.775 19681-19681 ConversationsListScreen xx.android.en I Updating the Conversations List Screen with ConversationsListScreenState(messagingTheme=MessagingTheme(primaryColor=-35531, onPrimaryColor=-1, messageColor=-15790321, onMessageColor=-1, actionColor=-35531, onActionColor=-1, inboundMessageColor=-723208, systemMessageColor=-1, backgroundColor=-1, onBackgroundColor=-16777216, elevatedColor=-1, notifyColor=-3394752, successColor=-16547501, dangerColor=-3855, onDangerColor=-7593172, disabledColor=-3355444, iconColor=-13682367, actionBackgroundColor=-1, onActionBackgroundColor=-35531), title=XX Support, description=Staging, logoUrl=, isMultiConvoEnabled=true, canUserCreateMoreConversations=true, conversations=[ConversationItem(id=6780090da8de5e7920c6ca4a, dateTimeStamp=2025-01-09T19:41:29, formattedDateTimeStampString=Just now, participantName=Bab, conversationTitle=Started Jan 09 at 7:36 PM, avatarUrl=https://theme.zdassets.com/theme_assets/4261/f843a0b045deb138763f08791f1f8d86bfb1ba93.png, latestMessage=Bab: Thank you for your feedback 🙂, latestMessageOwner=Bab, unreadMessages=0, accessibilityTitle=Conversation started January 09 at 7:36 PM, Message from Bab, Thank you for your feedback 🙂, Just now, , unreadMessagesColor=-3394752, dateTimestampTextColor=-16777216, lastMessageTextColor=-16777216, conversationParticipantsTextColor=-16777216, conversationTitleTextColor=-16777216), ConversationItem(id=6780072abc4f8d66a0e31408, dateTimeStamp=2025-01-09T19:28:14, formattedDateTimeStampString=7:28 PM, participantName=Bab, conversationTitle=Started Jan 09 at 7:28 PM, avatarUrl=https://theme.zdassets.com/theme_assets/4261/f843a0b045deb138763f08791f1f8d86bfb1ba93.png, latestMessage=Bab: Ask me a question and I'll find the answer for you., latestMessageOwner=Bab, unreadMessages=1, accessibilityTitle=Conversation started January 09 at 7:28 PM, Message from Bab, Ask me a question and I'll find the answer for you., 7:28 PM, 1 unread message, unreadMessagesColor=-3394752, dateTimestampTextColor=-16777216, lastMessageTextColor=-16777216, conversationParticipantsTextColor=-16777216, conversationTitleTextColor=-16777216), ConversationItem(id=678006e82766aa8330dfdd44, dateTimeStamp=2025-01-09T19:27:08, formattedDateTimeStampString=7:27 PM, participantName=Bab, conversationTitle=Started Jan 09 at 7:27 PM, avatarUrl=https://theme.zdassets.com/theme_assets/4261/f843a0b045deb138763f08791f1f8d86bfb1ba93.png, latestMessage=Bab: Ask me a question and I'll find the answer for you., latestMessageOwner=Bab, unreadMessages=0, accessibilityTitle=Conversation started January 09 at 7:27 PM, Message from Bab, Ask me a question and I'll find the answer for you., 7:27 PM, , unreadMessagesColor=-3394752, dateTimestampTextColor=-16777216, lastMessageTextColor=-16777216, conversationParticipantsTextColor=-16777216, conversationTitleTextColor=-16777216), ConversationItem(id=678006cd41958e20c4afa63a, dateTimeStamp=2025-01-09T19:26:41, formattedDateTimeStampString=7:26 PM, participantName=Bab, conversationTitle=Started Jan 09 at 7:26 PM, avatarUrl=https://theme.zdassets.com/theme_assets/4261/f843a0b045deb138763f08791f1f8d86bfb1ba93.png, latestMessage=Bab: Ask me a question and I'll find the answer for you., latestMessageOwner=Bab, unreadMessages=0, accessibilityTitle=Conversation started January 09 at 7:26 PM, Message from Bab, Ask me a question and I'll find the answer for you., 7:26 PM, , unreadMessagesColor=-3394752, dateTimestampTextColor=-16777216, lastMessageTextColor=-16777216, conversationParticipantsTextColor=-16777216, conversationTitleTextColor=-16777216), ConversationItem(id=677ebc88a588da9a525e89b8, dateTimeStamp=2025-01-08T19:58:40, formattedDateTimeStampString=Jan 08, participantName=Bab, conversationTitle=Started Jan 08 at 7:57 PM, avatarUrl=https://theme.zdassets.com/theme_assets/4261/f843a0b045deb138763f08791f1f8d86bfb1ba93.png, latestMessage=Bab: How would you rate your experience?, latestMessageOwner=Bab, unreadMessages=0, accessibilityTitle=Conversation started January 08 at 7:57 PM, Message fro
2025-01-09 19:44:17.776 19681-19681 ConversationsListScreen xx.android.en I m Bab, How would you rate your experience?, Jan 08, , unreadMessagesColor=-3394752, dateTimestampTextColor=-16777216, lastMessageTextColor=-16777216, conversationParticipantsTextColor=-16777216, conversationTitleTextColor=-16777216), ConversationItem(id=677ebaac0edf9b1c6e677a70, dateTimeStamp=2025-01-08T19:50:51, formattedDateTimeStampString=Jan 08, participantName=Bab, conversationTitle=Started Jan 08 at 7:49 PM, avatarUrl=https://theme.zdassets.com/theme_assets/4261/f843a0b045deb138763f08791f1f8d86bfb1ba93.png, latestMessage=Bab: How would you rate your experience?, latestMessageOwner=Bab, unreadMessages=0, accessibilityTitle=Conversation started January 08 at 7:49 PM, Message from Bab, How would you rate your experience?, Jan 08, , unreadMessagesColor=-3394752, dateTimestampTextColor=-16777216, lastMessageTextColor=-16777216, conversationParticipantsTextColor=-16777216, conversationTitleTextColor=-16777216)], connectionStatus=CONNECTED_REALTIME, showDeniedPermission=false, createConversationState=LOADING, conversationsListState=SUCCESS, shouldLoadMore=false, currentPaginationOffset=6, loadMoreStatus=NONE, receivedMessageAuthor=null)
2025-01-09 19:44:17.818 19681-19681 RealImageLoader xx.android.en I 🚨 Failed - - java.lang.IllegalStateException: Unable to create a fetcher that supports:
2025-01-09 19:44:17.818 19681-19681 RealImageLoader xx.android.en I
2025-01-09 19:44:17.819 19681-20176 ComplexStorage xx.android.en W There is no stored data for the given key
2025-01-09 19:44:17.821 19681-20317 SimpleStorage xx.android.en W There is no stored data for the given key
2025-01-09 19:44:18.035 19681-20229 UserActionProcessor xx.android.en E [UTC 2025-01-09T17:44:18Z] Failed to create conversation. (Ask Gemini)
retrofit2.HttpException: HTTP 400
at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:164)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
2025-01-09 19:44:18.035 19681-19681 ConversationsListStateH xx.android.en D Create New Conversation State: FAILED
What could be wrong? How can I solve this so I can move on from the issue..
Thank you!

0
1 comment
Catalin Prata
Hello, some more information about this. I also set some conversation fields after opening the messaging, can't post them here but it appears that some of those are causing the issue.. if I do a clear conversation fields before starting the chat then the session goes well.. still it would have been nice to get a better error message that would explain the issue better. What do you think?
0