# What does this error mean "Connection has been canceled. Moved to background when in ConnectingState."?

**URL:** <https://community.sendbird.com/t/what-does-this-error-mean-connection-has-been-canceled-moved-to-background-when-in-connectingstate/6962>\
**Category:** Android\
**Created:** [April 4, 2023, 9:34pm UTC](https://community.sendbird.com/t/what-does-this-error-mean-connection-has-been-canceled-moved-to-background-when-in-connectingstate/6962 "2023-04-04T21:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lara\_Lu](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/lara_lu/32/3844_2.png) [@Lara\_Lu](https://community.sendbird.com/u/Lara_Lu)\
**Post date:** [April 4, 2023, 9:34pm UTC](https://community.sendbird.com/t/what-does-this-error-mean-connection-has-been-canceled-moved-to-background-when-in-connectingstate/6962/1 "2023-04-04T21:34:10Z")

</div>

**[Problem/Question]**  
We’re calling `SendbirdChat.connect` in a coroutine:

```auto
backgroundScope.launch { SendbirdChat.connect(...) }

```

Since upgrading to sendbird v4, we’ve been getting `Connection has been canceled. Moved to background when in ConnectingState.` sometimes, and I’m not sure what it means.

* * *

// If problem, please fill out the below. If question, please delete.  
**[SDK Version]**  
4.2.1

**[Reproduction Steps]**  
// Please provide reproduction steps and, if possible, code snippets.

**[Frequency]**  
Frequent

**[Current impact]**  
Causing prod crashes

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [April 10, 2023, 4:24am UTC](https://community.sendbird.com/t/what-does-this-error-mean-connection-has-been-canceled-moved-to-background-when-in-connectingstate/6962/2 "2023-04-10T04:24:46Z")

</div>

Closed on April 10, 2023, 4:24am UTC



---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [April 10, 2023, 4:25am UTC](https://community.sendbird.com/t/what-does-this-error-mean-connection-has-been-canceled-moved-to-background-when-in-connectingstate/6962/3 "2023-04-10T04:25:06Z")

</div>

Handled via other communication channels.
