# Users cannot leave channel

**URL:** <https://community.sendbird.com/t/users-cannot-leave-channel/6158>\
**Category:** Sendbird Chat UIKit\
**Created:** [December 14, 2022, 8:55pm UTC](https://community.sendbird.com/t/users-cannot-leave-channel/6158 "2022-12-14T20:55:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Smith](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brandon_smith/32/2901_2.png) [@Brandon\_Smith](https://community.sendbird.com/u/Brandon_Smith)\
**Post date:** [December 14, 2022, 8:55pm UTC](https://community.sendbird.com/t/users-cannot-leave-channel/6158/1 "2022-12-14T20:55:59Z")

</div>

When calling:

await channel.leave();

The user does not leave the channel and I get the following error.

Uncaught (in promise) SendbirdError: “user\_id” must be a string.

Any ideas as to why?

---

<div class="post-metadata">

**Author:** ![Brandon\_Smith](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brandon_smith/32/2901_2.png) [@Brandon\_Smith](https://community.sendbird.com/u/Brandon_Smith)\
**Post date:** [December 16, 2022, 11:30pm UTC](https://community.sendbird.com/t/users-cannot-leave-channel/6158/2 "2022-12-16T23:30:59Z")

</div>

Still can not leave channels. Is sendbird just broken? Anyone know of an alternative product?

---

<div class="post-metadata">

**Author:** ![PatrickAzul](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/patrickazul/32/2544_2.png) [@PatrickAzul](https://community.sendbird.com/u/PatrickAzul)\
**Post date:** [December 19, 2022, 2:45pm UTC](https://community.sendbird.com/t/users-cannot-leave-channel/6158/3 "2022-12-19T14:45:07Z")

</div>

> [@Brandon\_Smith](#):
>
> channel

I personally am not having any issue with the Sendbird leave functionality and I am using UIKit for IOS. Since the staff is probably going to ask as well, can you provide what version of Sendbird you are using (Core or UIkit) and what platform you are building on (IOS, Android, Platform API, etc.).

Also can you attach some more context of your code on how/when you are using the leave functionality, what you are passing in, etc so they can start working on it whenever they see this message?

---

<div class="post-metadata">

**Author:** ![Brandon\_Smith](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brandon_smith/32/2901_2.png) [@Brandon\_Smith](https://community.sendbird.com/u/Brandon_Smith)\
**Post date:** [December 19, 2022, 4:55pm UTC](https://community.sendbird.com/t/users-cannot-leave-channel/6158/5 "2022-12-19T16:55:22Z")

</div>

Moving to SDK thread.
