# Custom React Input on OpenChannel Throws 400201 Channel Not Found Error

**URL:** <https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247>\
**Category:** React\
**Tags:** javascript, uikit, bug, question\
**Created:** [March 23, 2022, 4:18pm UTC](https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247 "2022-03-23T16:18:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![George](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/george/32/2237_2.png) [@George](https://community.sendbird.com/u/George)\
**Post date:** [March 23, 2022, 4:18pm UTC](https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247/1 "2022-03-23T16:18:21Z")

</div>

_Versions:_

- sendbird-uikit v2.7.0
- react v17.0.0
- react-dom v17.0.0

I have an issue sending a message in the chat to an open channel by using a custom input React component.

My example is here: [(2-5) Customizing MessageInput (forked) - CodeSandbox](https://codesandbox.io/s/2-5-customizing-messageinput-forked-bw6xf3?file=/src/App.js)

In the App.js file in the codesandbox example, if I remove line 71 “renderMessageInput” attribute from OpenChannel and let the UIKit render its input component then it works, so I’m guessing the APP ID and the Channel URL is correct.

By using a custom input React component and using the “getSendUserMessage” function it doesn’t work. The response from the SendBird API is “SendBirdException: “Channel” not found.” error code 400201.

Please, can you help me out if I’m doing something incorrectly or is this a bug in the SendBird API?

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [March 23, 2022, 5:57pm UTC](https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247/2 "2022-03-23T17:57:19Z")

</div>

Hi @George, and welcome to the Sendbird Community!

I have your case that you opened with the support team and I wanted to reply here for visibility in the event someone else has the same question.

In your example you provided, you are using `getSendUserMessage()` which is a method for Group Channels. You should use `getOpenChannelSendUserMessage()` instead when using Open Channels.

I modified the sample you provided on Line 54 and was able to send a message: [https://codesandbox.io/s/2-5-customizing-messageinput-forked-j5bp4j](https://codesandbox.io/s/2-5-customizing-messageinput-forked-j5bp4j)

Please refer to this list of Open Channel selectors in [Sendbird Docs](https://sendbird.com/docs/uikit/v1/react/guides/open-channel#2-configure-the-channel-settings-3-sendbirdselectors).

---

<div class="post-metadata">

**Author:** ![George](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/george/32/2237_2.png) [@George](https://community.sendbird.com/u/George)\
**Post date:** [March 23, 2022, 5:58pm UTC](https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247/4 "2022-03-23T17:58:26Z")

</div>

Thanks a lot for the quick response!

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [March 23, 2022, 5:59pm UTC](https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247/5 "2022-03-23T17:59:07Z")

</div>

My pleasure! Always happy to help!

---

<div class="post-metadata">

**Author:** ![Ian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ian/32/2077_2.png) [@Ian](https://community.sendbird.com/u/Ian)\
**Post date:** [March 23, 2022, 6:53pm UTC](https://community.sendbird.com/t/custom-react-input-on-openchannel-throws-400201-channel-not-found-error/4247/6 "2022-03-23T18:53:31Z")

</div>


