# Deactivated User Connection Error Handling Issue and Solution

**URL:** <https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240>\
**Category:** Flutter\
**Tags:** chatsdk\
**Created:** [November 10, 2025, 8:23am UTC](https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240 "2025-11-10T08:23:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tayloryun](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tayloryun](https://community.sendbird.com/u/tayloryun)\
**Post date:** [November 10, 2025, 8:23am UTC](https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240/1 "2025-11-10T08:23:20Z")

</div>

When trying to connect with a deactivated user ID, the catch block throws a login timeout error rather than a user deactivated error.

What’s the best practice for handling login attempts from deactivated users?

---

<div class="post-metadata">

**Author:** ![Suhirtha\_Ayyappan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/suhirtha_ayyappan/32/3983_2.png) [@Suhirtha\_Ayyappan](https://community.sendbird.com/u/Suhirtha_Ayyappan)\
**Post date:** [November 11, 2025, 11:12am UTC](https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240/3 "2025-11-11T11:12:52Z")

</div>

Hi @tayloryun,  
If a deactivated user tries to log in, the SDK will through a 400300 error.

![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/optimized/2X/9/97f3cb41a09310acadf43c213a1095ee37fd4ef6_2_690x62.png)

Link: [Error codes | Chat iOS SDK | Sendbird Docs](https://sendbird.com/docs/chat/sdk/v4/ios/error-codes)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/c/c8a0c1ce4a3dcb120f36f09b009ff58e339b1df8.png)

---

<div class="post-metadata">

**Author:** ![tayloryun](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tayloryun](https://community.sendbird.com/u/tayloryun)\
**Post date:** [November 12, 2025, 2:29am UTC](https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240/4 "2025-11-12T02:29:45Z")

</div>

Hello, @Suhirtha_Ayyappan  
Can this be handled the same way in Flutter?

---

<div class="post-metadata">

**Author:** ![Suhirtha\_Ayyappan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/suhirtha_ayyappan/32/3983_2.png) [@Suhirtha\_Ayyappan](https://community.sendbird.com/u/Suhirtha_Ayyappan)\
**Post date:** [November 13, 2025, 12:05pm UTC](https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240/5 "2025-11-13T12:05:23Z")

</div>

yes.

![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/optimized/2X/d/d6a78f40a408aaa6ca0527d6e6dae9cf20d12e19_2_690x63.png)

> **[Error Codes | Chat Flutter SDK | Sendbird Docs](https://sendbird.com/docs/chat/sdk/v4/flutter/error-codes)**
>
> Guides for quick and easy integration of Sendbird Chat, Calls and Desk for iOS, Android, JavaScript, Unity, .NET and Platform API.

---

<div class="post-metadata">

**Author:** ![tayloryun](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tayloryun](https://community.sendbird.com/u/tayloryun)\
**Post date:** [November 14, 2025, 1:21am UTC](https://community.sendbird.com/t/deactivated-user-connection-error-handling-issue-and-solution/11240/6 "2025-11-14T01:21:37Z")

</div>

When connecting with a deactivated user using the project from sendbird-chat-sample-flutter, I could only handle LoginTimeoutException. How can I handle userDeactivated exception?
