# Creating an Open Channel not letting me set the channel URL

**URL:** https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416
**Category:** JavaScript
**Tags:** react-js, open-channel, chatsdk
**Created:** [June 7, 2021, 7:54pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416 "2021-06-07T19:54:15Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![mwq27](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mwq27](https://community.sendbird.com/u/mwq27)
#### Post date: [June 7, 2021, 7:54pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/1 "2021-06-07T19:54:15Z")

</div>

I am attempting to use the Javascript SDK in my React app to create an open channel.

```javascript
const params: SendBird.OpenChannelParams = new sdk.OpenChannelParams();
params.name = channelId;
params.data = JSON.stringify({
  shipmentId: channelId,
});
params.channelUrl = channelId;
sdk.OpenChannel.createChannel(params, (openChannel) => {
  ...
});

```

I’m using params.channelUrl to set a unique URL, as per the docs, but in the POST the channelUrl is never used. The POST body to `/v3/open_channels` only uses the `name`, `data`, and `operators` keys.

 ![Screen Shot 2021-06-07 at 2.52.59 PM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/2/20535c90144b37b9f5b7524a67c95d8c94b24ac2.png)

Is there something I’m doing wrong here?

UPDATE:

I don’t see `channelUrl` being used in the minified Sendbird.min.js code for creating an OpenChannel:

```auto
{
            key: "createChannel",
            value: function() {
                var i = this
                  , n = W.toArray(arguments)
                  , e = null;
                "function" == typeof n[n.length - 1] && (e = n.pop());
                var t = B.get(this._iid)
                  , r = t.OpenChannel
                  , t = t.OpenChannelParams;
                if (n[0]instanceof t && 1 === n.length)
                    return ae(this._iid, function(r) {
                        var e = n[0];
                        e._validate() ? ce.get(i._iid).container.apiClient.createOpenChannel(e, function(e, n) {
                            var t = null;
                            e || (t = B.get(i._iid).OpenChannel.upsert(n)),
                            r(e, t)
                        }) : r(W.error, null)
                    }, e);
                var a = new t;
                switch (n.length) {
                case 0:
                    break;
                case 1:
                    a.name = n[0];
                    break;
                case 2:
                    a.name = n[0],
                    a.coverUrlOrImage = n[1];
                    break;
                case 3:
                    a.name = n[0],
                    a.coverUrlOrImage = n[1],
                    a.data = n[2];
                    break;
                case 4:
                    a.name = n[0],
                    a.coverUrlOrImage = n[1],
                    a.data = n[2],
                    a.operatorUserIds = n[3];
                    break;
                case 5:
                    a.name = n[0],
                    a.coverUrlOrImage = n[1],
                    a.data = n[2],
                    a.operatorUserIds = n[3],
                    a.customType = n[4];
                    break;
                default:
                    return ae(this._iid, function(e) {
                        return e(W.error, null)
                    }, e)
                }
                return e ? r.createChannel(a, e) : r.createChannel(a)
            }

```

If you look at the switch/case statement, channelUrl is missing.

---

<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: [June 7, 2021, 9:59pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/2 "2021-06-07T21:59:28Z")

</div>

Hi @mwq27,

Looks like you are correct, that it appears to be missing. Let me work with our Engineering team to validate.

---

<div class="post-metadata">

### Author: ![mwq27](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mwq27](https://community.sendbird.com/u/mwq27)
#### Post date: [June 10, 2021, 2:28pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/3 "2021-06-10T14:28:34Z")

</div>

Thanks Tyler,

Do you know if this bug has been confirmed, and if a patch is coming soon?

---

<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: [June 10, 2021, 2:30pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/4 "2021-06-10T14:30:42Z")

</div>

Hi @mwq27,

I’ve heard anything back on this yet. As soon as I hear something, I’ll make sure to pass it your way.

-Tyler

---

<div class="post-metadata">

### Author: ![sharewell](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sharewell](https://community.sendbird.com/u/sharewell)
#### Post date: [June 21, 2021, 7:38pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/5 "2021-06-21T19:38:28Z")

</div>

Hello is there an update for this? I am using [GitHub - sendbird/SendBird-SDK-JavaScript: Sendbird Chat SDK for JavaScript for enablement of a rich, engaging, scalable, and real-time chat service.](https://github.com/sendbird/Sendbird-SDK-JavaScript) and running into the same issue. Would like to know if there is a work around or if fix is coming soon.

---

<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: [June 21, 2021, 8:17pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/6 "2021-06-21T20:17:15Z")

</div>

Hello @sharewell,

This has not yet been corrected. As soon as it has been fixed, I’ll make sure to update here.

---

<div class="post-metadata">

### Author: ![Dogyun\_Jeong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dogyun_jeong/32/1793_2.png) [@Dogyun\_Jeong](https://community.sendbird.com/u/Dogyun_Jeong)
#### Post date: [January 13, 2022, 4:54am UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/7 "2022-01-13T04:54:25Z")

</div>

Hi @Tyler

I have exact same issue. Is there any plan to fix this one?

---

<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: [January 13, 2022, 4:22pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/8 "2022-01-13T16:22:08Z")

</div>

Hi @Dogyun_Jeong,

Welcome to the Sendbird Community. What version of the SDK are you using?

---

<div class="post-metadata">

### Author: ![Dogyun\_Jeong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dogyun_jeong/32/1793_2.png) [@Dogyun\_Jeong](https://community.sendbird.com/u/Dogyun_Jeong)
#### Post date: [January 16, 2023, 2:11pm UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/9 "2023-01-16T14:11:13Z")

</div>

Hi @Tyler

I am here again.

I am using the client javascript SDK version 3.1.30, the latest version on NPM. and still have same error.

Below is my Code. I tried to setup name or other params. Then the params working correctly.

The “channelId” is a uuidv4

```auto
    const params = new sb.OpenChannelParams();
    params.channelUrl = channelId;
    sb.OpenChannel.createChannel(params, (channel, error) => {

```

I also use platform API to create a channel at serverside. The platfor API function work as expected with specified channle ID

---

<div class="post-metadata">

### Author: ![Dogyun\_Jeong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dogyun_jeong/32/1793_2.png) [@Dogyun\_Jeong](https://community.sendbird.com/u/Dogyun_Jeong)
#### Post date: [January 31, 2023, 5:40am UTC](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416/10 "2023-01-31T05:40:15Z")

</div>

Hi I have a problem with creating new open channel with Javascript Client SDK

This issue has been reported already in [Creating an Open Channel not letting me set the channel URL](https://community.sendbird.com/t/creating-an-open-channel-not-letting-me-set-the-channel-url/2416)

Is there any update for this?
