Can't get PubSub listener to work

I noticed now that the “onError()” function prints this on first load of the extension:

Error: ERR_BADAUTH
    at e.notifyOnError (twitch-ext.min.js:8)
    at Object.failure (twitch-ext.min.js:8)
    at t.value (twitch-ext.min.js:8)
    at t.value (twitch-ext.min.js:1)
    at t.value (twitch-ext.min.js:8)

If I right click the iframe and refresh this message doesn’t come up.
Casting the channel_id to string didn’t work, also I am pretty sure it’s a string already but even with explicit casting it didn’t change anything.