# Set Config stopped working on live extension

**URL:** <https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220>\
**Category:** Extensions\
**Created:** [September 19, 2020, 10:17pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220 "2020-09-19T22:17:44Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beakii](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/beakii/32/10339_2.png) [@Beakii](https://discuss.dev.twitch.com/u/Beakii)\
**Post date:** [September 19, 2020, 10:17pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/1 "2020-09-19T22:17:44Z")

</div>

Hello, I’ve received some email reports of issues with one of my extensions that I currently have live at the moment, where users seem to be unable to update their config’s from the config page. I have replicated this issue on both the live version of the extension on my page, as well as local testing in developer rig.

Below is an example of how and what I am attempting to save. For clarification, I have got window.Twitch.ext saved as a const.

> const twitch = window.Twitch.ext;

Example JSON attempted to save to Configuration Service.

> const configJSON = {  
> “username”: “someusername”,  
> }

Example saving to configuration service.

> twitch.configuration.set(‘broadcaster’, ‘1’, configJSON);

I can manually set the config data in developer rig, and it loads into my extension perfectly fine, but setting the configuration from code does not appear to be working for me. I am confused because it was working when I published the extension after it was reviewed. Is there perhaps something that has changed? or maybe configuration service is down? Not sure how to go about fixing this, as I don’t know why its not working anymore.

Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![JZBG](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jzbg/32/11522_2.png) [@JZBG](https://discuss.dev.twitch.com/u/JZBG)\
**Post date:** [February 23, 2021, 11:42pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/2 "2021-02-23T23:42:28Z")

</div>

I am having the same exact issue…

How did you resolve this?

I am using the Twitch Developer Rig and can also manually set the data via the `Configuration Service` tab of the rig… and view the configuration via JavaScript object `JSON.parse(twitch.configuration.broadcaster.content);`

However, when attempting to set the data via JavaScript via my `config.html / config.js` I am not able to update.

```auto
  twitch.configuration.set(
    "broadcaster",
    "1.0",
    JSON.stringify({'foo': 'bar'})
  );

```

The extension has the web setting capabilities configured to use `Extension Configuration Service`

Any ideas?

@BarryCarlyon

---

<div class="post-metadata">

**Author:** ![Beakii](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/beakii/32/10339_2.png) [@Beakii](https://discuss.dev.twitch.com/u/Beakii)\
**Post date:** [February 24, 2021, 12:24am UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/3 "2021-02-24T00:24:08Z")

</div>

I actually did manage to figure out the issue I was having specifically. Below is the exact code I used and is working currently.

> twitch.configuration.set(  
> “broadcaster”,  
> ‘’,  
> JSON.stringify({ ‘foo’ : ‘bar’ }  
> );

I found that by leaving the 2nd argument in the set function to an empty string it fixed my issue.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![JZBG](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jzbg/32/11522_2.png) [@JZBG](https://discuss.dev.twitch.com/u/JZBG)\
**Post date:** [February 24, 2021, 12:29am UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/4 "2021-02-24T00:29:51Z")

</div>

I have tried this, but I still cannot persist (set) the data when running locally. I have passed an empty `""` for the version number as you mentioned, but no luck.

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [February 24, 2021, 12:51am UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/5 "2021-02-24T00:51:52Z")

</div>

Have you tried testing on Twitch? The rig is notoriously bad for handling the configuration service.

---

<div class="post-metadata">

**Author:** ![JZBG](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jzbg/32/11522_2.png) [@JZBG](https://discuss.dev.twitch.com/u/JZBG)\
**Post date:** [February 24, 2021, 4:58pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/6 "2021-02-24T16:58:51Z")

</div>

@Dist …

yes, you are correct.

After I deployed to actual Twitch hosting, the configuration service was able to set.

The developer rig is a bit janky. IMHO. Not sure how all of these developers are able to figure out these quirks without trial and error.

Side question: Maybe you know the answer to this…

I am able to see the extension that I am developing and installed on my own account. That works fine.

I created a secondary test Twitch account and I invited that user via theTwitch Access \> Testing Account Allowlist to provide access to this extension during testing.

I did this because I want to see how the extension would look for another random user who is visiting my channels about page…

In summary:

How can I test the extension from an anoynmous or logged in Twitch user (other then myself) when they visit for example [twitch.tv/myusername/about](http://twitch.tv/myusername/about)

Currently: I can see the panel working great on my own account.

However, when I try to browse as an anonymous non-logged in or another logged-in user, I don’t see the panel at all showing.

Any ideas? Does it only show once the extension is actually published? If so what is the best way to test?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 24, 2021, 5:06pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/7 "2021-02-24T17:06:28Z")

</div>

> [@JZBG](#):
>
> The developer rig is a bit janky. IMHO. Not sure how all of these developers are able to figure out these quirks without trial and error.

By not using the rig 😃

> [@JZBG](#):
>
> In summary:
> 
> How can I test the extension from an anoynmous or logged in Twitch user (other then myself) when they visit for example [twitch.tv/myusername/about](http://twitch.tv/myusername/about)
> 
> Currently: I can see the panel working great on my own account.
> 
> However, when I try to browse as an anonymous non-logged in or another logged-in user, I don’t see the panel at all showing.

A logged out Twitch user can never see an extension in test.

A logged out Twitch user is no different from a “logged in twitch user that is not IDShared”

Or use the rig to simulate a logged out user.

> [@JZBG](#):
>
> However, when I try to browse as an anonymous non-logged in or another logged-in user, I don’t see the panel at all showing.

The panel will be visible to anyone on the “Testing Allowlist”

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 24, 2021, 5:08pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/9 "2021-02-24T17:08:45Z")

</div>

> [@JZBG](#):
>
> How can I see how the extension operates on Twitch for a random user visiting my channel which has the extension installed in test/development mode?

I edited/revised my post/reply to answer that

---

<div class="post-metadata">

**Author:** ![JZBG](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jzbg/32/11522_2.png) [@JZBG](https://discuss.dev.twitch.com/u/JZBG)\
**Post date:** [February 24, 2021, 5:09pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/10 "2021-02-24T17:09:01Z")

</div>

Reading now… thx

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 24, 2021, 5:10pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/11 "2021-02-24T17:10:15Z")

</div>

I do this

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/2X/9/918d55870ae543164d2c60731a397b1fc29e11fb.png)

Then I install and activate my extension(s) on `barrycarlyonbot`

Then I browse the extension on `barrycarlyonbot` channel when logged in as my primary account `barrycarlyon`

(I’ll keep barrycarlyonbot logged in on chrome incognito if I need to change anything)

---

<div class="post-metadata">

**Author:** ![JZBG](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jzbg/32/11522_2.png) [@JZBG](https://discuss.dev.twitch.com/u/JZBG)\
**Post date:** [February 24, 2021, 5:16pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/12 "2021-02-24T17:16:37Z")

</div>

@BarryCarlyon… Thanks… I think my issue was that the Twitch web console did not save my allow list… I had to first switch back to local mode then update allow list, save changes then switch back to hosting mode.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 24, 2021, 5:18pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/13 "2021-02-24T17:18:15Z")

</div>

Yeah to make changes you have to be in local test.  
Sounds like you had an “out of date” console page open if you treid to make changes whilst in hosted.

(It should of been grey out/unchangeable)

---

<div class="post-metadata">

**Author:** ![JZBG](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jzbg/32/11522_2.png) [@JZBG](https://discuss.dev.twitch.com/u/JZBG)\
**Post date:** [February 24, 2021, 5:21pm UTC](https://discuss.dev.twitch.com/t/set-config-stopped-working-on-live-extension/28220/14 "2021-02-24T17:21:21Z")

</div>

It probably was… I’m just getting familiar with this “Twitch Development Environment”.

Thx for your help.
