# \[SOLVED\] Twitch.configuration.set not Working

**URL:** <https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426>\
**Category:** Extensions\
**Created:** [July 31, 2020, 3:07pm UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426 "2020-07-31T15:07:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqanansoft](https://avatars.discourse-cdn.com/v4/letter/i/db5fbb/32.png) [@iqanansoft](https://staging-discuss.dev.twitch.com/u/iqanansoft)\
**Post date:** [July 31, 2020, 3:07pm UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426/1 "2020-07-31T15:07:52Z")

</div>

this class in project test not working, and no execute code below. for example

my code test

```
var array1 = new Array();
document.getElementById("buttonconfig").addEventListener("click", fun1); 
document.getElementById("text1").value = "Johnny"; 

function fun1(){
 array1 .push(document.getElementById("text1").value); 
 array1 .push(document.getElementById("text1").value);
 updateConfig();
}

function updateConfig(){
document.getElementById("text1").value="hellooo!!!!!!!!!!!!!!!!!";
 twitch.configuration.set('broadcaster', '1', JSON.stringify(array1));
document.getElementById("text1").value="byee.....!!!!!!!!!!!!"; 
}

```

when i execute in twitch, this extension execute code “hellooo!!!” but not execute “byee…!!!”

what is the fail?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 31, 2020, 3:11pm UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426/2 "2020-07-31T15:11:43Z")

</div>

- Check you have a `onError` bound to catch errors

> **[Extensions Reference](https://dev.twitch.tv/docs/extensions/reference/)**
>
> Extensions Reference

- Check you have enabled the config service (image taken from a released extension only because I already had the page open)

 ![image](https://d2spem0quai2ol.cloudfront.net/original/2X/5/500af0286001021ecf5992ec3b8a63c1c1645080.png)

- Check you are running `.set` from a config panel, or when it’s the broadcaster connected

`This function can be called by the front end to set an extension configuration. It uses the Twitch-provided JWT for broadcasters, to allow broadcasters to set a broadcaster configuration segment.`

> **[Extensions Reference](https://dev.twitch.tv/docs/extensions/reference/)**
>
> Extensions Reference

---

<div class="post-metadata">

**Author:** ![iqanansoft](https://avatars.discourse-cdn.com/v4/letter/i/db5fbb/32.png) [@iqanansoft](https://staging-discuss.dev.twitch.com/u/iqanansoft)\
**Post date:** [July 31, 2020, 3:25pm UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426/3 "2020-07-31T15:25:39Z")

</div>

ups! I did not know this option in the configuration

---

<div class="post-metadata">

**Author:** ![iqanansoft](https://avatars.discourse-cdn.com/v4/letter/i/db5fbb/32.png) [@iqanansoft](https://staging-discuss.dev.twitch.com/u/iqanansoft)\
**Post date:** [July 31, 2020, 3:40pm UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426/4 "2020-07-31T15:40:11Z")

</div>

I have configured these options and it doesn’t work

 ![Captur](https://d2spem0quai2ol.cloudfront.net/original/2X/c/c3e7fe99f6254726b709202625dfabf3a8c31e63.jpeg)

\*Sorry the options are in spanish

the problem is format JSON twitch.configuration.set(…) ?

---

<div class="post-metadata">

**Author:** ![iqanansoft](https://avatars.discourse-cdn.com/v4/letter/i/db5fbb/32.png) [@iqanansoft](https://staging-discuss.dev.twitch.com/u/iqanansoft)\
**Post date:** [August 1, 2020, 12:37am UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426/5 "2020-08-01T00:37:47Z")

</div>

the problem was in the documentation, because the function name is written in lowercase

`twitch.configuration.set`

but this doesn’t work, for it to work you must capitalize the first letter of “Twitch”

`Twitch.ext.configuration.set`

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 1, 2020, 1:28am UTC](https://staging-discuss.dev.twitch.com/t/solved-twitch-configuration-set-not-working/27426/6 "2020-08-01T01:28:33Z")

</div>

Yeah a lot of the docs expect you to have case a

```
const twitch = window.Twitch

```

I think we have uservoices in place to make adjustments
