Required Configuration using Service Configuration Extension

This is true, because you set the “Broadcaster Writable Channel Segment Version” to a value. You can leave this blank if you don’t require the extension to be configured to function.

The problem here is you set the developer and broadcaster required versions to “1”, but in your code, you set the global version and config.

This causes a number of issues.

  • First. you cannot set the “global” config via .set that’s restricted to the API for security reasons, otherwise everyone that installs your extension can change everyone elses configuration.
  • Second, you never set the developer and broadcaster segments version to “1” which is required because you set this value in the console.

Fixes:

  1. Remove the value from the developer setting in the console
  2. Change you code to set the broadcaster segment, not global

Twitch.ext.configuration.set(“broadcaster”, “1”, JSON.stringify(h));

Also this is bad because the moment you load the configuration you are then changing the configuration. So the cached configuration is immediately out of date.

onChanged loads/populates the configuration from Twitch into your code, and can be called only once per page load

1 Like