Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix Stream shows game_id that does not exist (duplicate game issue) #225

Closed
kaldune opened this issue Sep 19, 2020 · 11 comments
Closed

Helix Stream shows game_id that does not exist (duplicate game issue) #225

kaldune opened this issue Sep 19, 2020 · 11 comments
Labels
product: api API endpoints in the "helix" namespace

Comments

@kaldune
Copy link

kaldune commented Sep 19, 2020

Brief description

Game does not exist.

How to reproduce

https://api.twitch.tv/helix/streams?user_login=mommarb

returns game_id "2031465855"

{
    "data": [
        {
            "id": "646933154",
            "user_id": "90735664",
            "user_name": "MommaRB",
            "game_id": "2031465855",
            "type": "live",
            "title": "Chaos/Crystal DRINKS !discord #teamb42",
            "viewer_count": 4,
            "started_at": "2020-09-19T01:29:04Z",
            "language": "en",
            "thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_mommarb-{width}x{height}.jpg",
            "tag_ids": [
                "6ea6bca4-4712-4ab9-a906-e3336a9d8039",
                "dcf598ca-b5de-47d4-af33-ecabe9eaeee1",
                "353ab6ac-a0ee-404e-9bfa-217446b97718"
            ]
        }
    ],
    "pagination": {}
}

https://api.twitch.tv/helix/games?id=2031465855

returns no data

{
    "data": []
}

Expected behavior

always return a game object for every helix stream

Screenshots

Additional context or questions

@kaldune kaldune added the product: api API endpoints in the "helix" namespace label Sep 19, 2020
@iProdigy
Copy link

Note: the streamer did not have a valid game set at the time - https://i.imgur.com/rOnJ21p.png

Things seem to be fine after they set the game properly - https://i.imgur.com/kAbv9IP.png

@kaldune
Copy link
Author

kaldune commented Sep 19, 2020

2031465855 was the game_id for FINAL FANTASY XIV Online but has since been deactivated. That's why the streamer didn't have a game set at the time.

Now the game_id is replaced by 24241.

{
    "data": [
        {
            "id": "24241",
            "name": "FINAL FANTASY XIV Online",
            "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/FINAL%20FANTASY%20XIV%20Online-{width}x{height}.jpg"
        }
    ]
}

When a game gets deactivated, the helix streams endpoint have stale data. This is what caused the issue.

@BarryCarlyon
Copy link
Contributor

Yeah this isn't a bug.

The channel was set to a game that was removed/moved and Twitch won't go back and update everyone set to the wrong game to another game. Since this (probably) wasn't a move but a duplication removal.

Might be warranted to raise a uservoice feature request, so Twitch does something to channels if a game that channel is set to is removed

@kaldune
Copy link
Author

kaldune commented Sep 21, 2020

@BarryCarlyon Now there are two Music games. This is the first time I've seen the issue ever and it's breaking things on our end because there should never be a duplicate of a game. I can try the user voice.

{
    "data": [
        {
            "id": "749080534",
            "name": "Music",
            "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/Music-{width}x{height}.jpg"
        },
        {
            "id": "26936",
            "name": "Music",
            "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/Music-{width}x{height}.jpg"
        }
    ]
}

Two streams playing Music with different game_id

{
    "data": [
        {
            "id": "669713362",
            "user_id": "77899915",
            "user_name": "frecklesx",
            "game_id": "26936",
            "type": "live",
            "title": "cozy singing and chill [𝐑𝐔╱𝐄𝐍𝐆]  ⌃___⌃ 🍓🥑🥭 🍫",
            "viewer_count": 72,
            "started_at": "2020-09-21T16:08:37Z",
            "language": "ru",
            "thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_frecklesx-{width}x{height}.jpg",
            "tag_ids": [
                "0569b171-2a2b-476e-a596-5bdfb45a1327",
                "e46ae70e-40a4-4b00-a1f3-a2f79721d1f6",
                "744f1c0b-458e-4a12-a759-bfa2edb7c81a",
                "2892b8a9-5234-4de1-a575-9d7b00401f64",
                "d6bf03b8-42f4-4981-b070-841c7457a9aa"
            ]
        },
        {
            "id": "39800109182",
            "user_id": "521772863",
            "user_name": "PianistMiri",
            "game_id": "749080534",
            "type": "live",
            "title": "Happy Happy Joy Joy Piano Stream with a Twitch Newbie",
            "viewer_count": 66,
            "started_at": "2020-09-21T17:01:09Z",
            "language": "en",
            "thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_pianistmiri-{width}x{height}.jpg",
            "tag_ids": [
                "6ea6bca4-4712-4ab9-a906-e3336a9d8039",
                "57e81aba-c8ae-48aa-8fba-7a7eb9d3dd23",
                "60b8f13e-7022-481a-afff-07de3db129cc",
                "ebb68e1c-7291-4350-a8f4-44b484f1da2f",
                "9f1b01a8-87b9-4e25-94de-8705c1c1f4dc",
                "f7c66388-34d7-4ac7-b171-b6a18053cae9"
            ]
        }
    ],
    "pagination": {}
}

@lleadbet
Copy link
Contributor

Hi everyone!

Thanks for flagging these. We've resolved the two noted above, but I'll leave this open for now in case you see any further.

I'll close this in a few days. :)

@kaldune
Copy link
Author

kaldune commented Sep 21, 2020

Currently, only the Music category has live streams with duplicate games. I'll let you know if I find any more.

image

@lleadbet
Copy link
Contributor

@kaldune - Flagged both, thanks!

@kaldune
Copy link
Author

kaldune commented Sep 21, 2020

@lleadbet Twitch Sings has two streams pointing to different game_id's

image

image

Here's the full list. Some of the game_id's don't exist anymore and I will have to clean them up on my end.

Age of Empires II: The Age of Kings	13389
Age of Empires II: The Age of Kings	505373
Call of Duty: Warzone	1614555304
Call of Duty: Warzone	516666
Kingdom Hearts HD 1.5 + 2.5 ReMIX	494099
Kingdom Hearts HD 1.5 + 2.5 Remix	496456
Music	26936
Music	749080534
Resident Evil 2	490868
Resident Evil 2	8645
System Shock	12801
System Shock	516082
Twitch Sings	280582309
Twitch Sings	509481

@kaldune
Copy link
Author

kaldune commented Sep 22, 2020

The list of streams that point to different game_id grew overnight.

Chess	1722425209
Chess	743
God of War	1821221053
God of War	6369
Pathologic 2	1865303615
Pathologic 2	6652
Resident Evil 2	490868
Resident Evil 2	8645
Sabotaj	405890966
Sabotaj	517476
Spelunky	1360153950
Spelunky	22619
Tetris	1434410339
Tetris	1736
Trials of Mana	1186
Trials of Mana	512997
God of War	1821221053	wscieklakoala
God of War	6369	missladyjay
God of War	6369	professorxavier_rex

Seems to be an ongoing thing now. This never happened prior to Friday 9/18.

@kaldune
Copy link
Author

kaldune commented Sep 22, 2020

When someone searches 'god of war' on Twitch, there is only 1 result.

image

How is this possible when 6369 and 1821221053 are both God of War? Does each game have an array of game_id now?

If each game_id is supposed to be a different game, then it would look like this:

image

@kaldune kaldune changed the title Helix Stream shows game_id that does not exist Helix Stream shows game_id that does not exist (duplicate game issue) Sep 22, 2020
@kaldune
Copy link
Author

kaldune commented Sep 27, 2020

I still see duplicates but it seems there's nothing to be done about it. Closing issue.

@kaldune kaldune closed this as completed Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: api API endpoints in the "helix" namespace
Projects
None yet
Development

No branches or pull requests

4 participants