twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

Extension missing from Get User Active Extensions helix endpoint #419

Open beheh opened 3 years ago

beheh commented 3 years ago

Brief description

When requesting the active extension for any channel using our extension's API key and secret, our own overlay extension seems to be invisible. Despite the overlay extension being activated, the Get User Active Extensions endpoint returns active: false indicating that no extension is activated. This appears to be a bug.

How to reproduce

You can test this on both our channels: 173220974 and 645825848, as well as a streamer's channel that uses our extension: 152890221. We're using the client_credentials flow, which should at least allow us to access the activated extensions with only API secrets and no explicit user authentication:

GET https://api.twitch.tv/helix/users/extensions?user_id=173220974 -H "Client-Id: pdspa6il7uylrm3qov7u0wdm4fgfcz" -H "Authorization: Bearer xxx"
{"data":{"panel":{"1":{"active":false},"2":{"active":false},"3":{"active":false}},"overlay":{"1":{"active":false}},"component":{"1":{"active":false},"2":{"active":false}}}}

It appears this is an issue specific to our extension and/or our API key. When we use another extension installed on our channel, it works correctly (see below). It also works correctly when using the v5 endpoint https://api.twitch.tv/v5/channels/173220974/extensions which correctly reports our extension:

GET https://api.twitch.tv/v5/channels/173220974/extensions -H "Client-Id: pdspa6il7uylrm3qov7u0wdm4fgfcz" -H "Authorization: Bearer xxx"
[...]
  "installed_extensions": [
    {
      "extension": {
        "anchor": "video_overlay",
        "asset_urls": [],
        "author_name": "HearthSim",
        "bits_enabled": false,
        "can_install": true,
        "config_url": "https://pdspa6il7uylrm3qov7u0wdm4fgfcz.ext-twitch.tv/pdspa6il7uylrm3qov7u0wdm4fgfcz/1.0.1/87cbc6a421de886d072e7e4116fff426/config.html",
[...]

Expected behavior

The API should indicate the overlay as installed and activated, like our other extension:

GET https://api.twitch.tv/helix/users/extensions?user_id=173220974
{"data":{"panel":{"1":{"active":false},"2":{"active":false},"3":{"active":false}},"overlay":{"1":{"active":true,"id":"apwln3g3ia45kk690tzabfp525h9e1","version":"1.2.0","name":"Hearthstone Deck Tracker"}},"component":{"1":{"active":false},"2":{"active":false}}}}

Screenshots

Additional context or questions

Our API client id is pdspa6il7uylrm3qov7u0wdm4fgfcz, which is also our extension id. However, I've tried this with other API clients as well and have not ever seen our extension appear.

BarryCarlyon commented 3 years ago

Additionally

https://api.twitch.tv/extensions/pdspa6il7uylrm3qov7u0wdm4fgfcz/live_activated_channels

Is returning 401: UnAuthorised