twitch-now icon indicating copy to clipboard operation
twitch-now copied to clipboard

Twitch Kraken (v5) API is now dead, breaking Twitch Now until it is updated to the new API

Open nthnwllms opened this issue 2 years ago • 32 comments

😥 Sad days 🪦

nthnwllms avatar Feb 07 '22 19:02 nthnwllms

Back up, but not indefinitely:

v5 shutdown timeline Given the number of v5 migrations, we wanted to ensure that you have sufficient time to update your applications and that we are reaching developers as soon as possible. A phased shutdown of v5 will begin in February 2022. Here are the shutdown windows:

February 7, 2022 – 1-hour shutdown starting at 11:00am PDT February 9, 2022 – 2-hour shutdown starting at 11:00am PDT February 14, 2022 – 4-hour shutdown starting at 11:00am PDT February 16, 2022 – 6-hour shutdown starting at 11:00am PDT February 21, 2022 – 24-hour shutdown starting at 11:00am PDT February 28, 2022 – v5 permanent shutdown

Abalieno avatar Feb 07 '22 20:02 Abalieno

Helix api break many things here. Extension require deep rework. I think many feautures after rework just will be removed. New helix api dont have many of what old apis had.

zm3y avatar Feb 08 '22 22:02 zm3y

Hopefully some kind of continuation happens. I looked at another extension that has moved to the new API and I can't say I liked its design nearly as much (no thumbnail, have to mouseover names to get descriptions etc.)

TheKins avatar Feb 14 '22 19:02 TheKins

Hopefully some kind of continuation happens. I looked at another extension that has moved to the new API and I can't say I liked its design nearly as much (no thumbnail, have to mouseover names to get descriptions etc.)

Which one are you talking about?

Necr0fantasia avatar Feb 15 '22 00:02 Necr0fantasia

Hopefully some kind of continuation happens. I looked at another extension that has moved to the new API and I can't say I liked its design nearly as much (no thumbnail, have to mouseover names to get descriptions etc.)

Which one are you talking about?

Probably this one: https://chrome.google.com/webstore/detail/twitch-live/iiljidcefnbhbpamageahhblhbbhhopm

B1ack3ye avatar Feb 15 '22 06:02 B1ack3ye

I was referring to this one. If you know anything better (or on par with Twitch Now), please let me know.

TheKins avatar Feb 15 '22 09:02 TheKins

#267

zm3y avatar Feb 16 '22 20:02 zm3y

You seem to talk about a chrome alternative or does it have a firefox version too?

tobim91 avatar Feb 16 '22 20:02 tobim91

it was working correctly until today, when will it be fixed?

soumya997 avatar Feb 16 '22 21:02 soumya997

@TheKins you should check this out Twitch Live Extension

but why?. look https://github.com/Ndragomirov/twitch-now/pull/267 its already fixed and working.

ghost avatar Feb 23 '22 20:02 ghost

I was having some issues with that extension at that time, and refreshing did not help. I thought twitch now is again down. I was looking for an alternative and found that. I will delete the comment. twitch now is workin pretty well now.

soumya997 avatar Feb 24 '22 22:02 soumya997

It stopped working for me yesterday.

https://github.com/Ndragomirov/twitch-now/issues/265#issuecomment-1042196980

macchky avatar Mar 01 '22 14:03 macchky

It stopped working for me yesterday.

#265 (comment)

I read that but I'm not sure what it means. I use the Chrome extension. Do I need to install it manually or is a fix in progress?

zm3y fixed issue. and his folk https://github.com/zm3y/twitch-now

pre-build available here https://github.com/Ndragomirov/twitch-now/pull/267#issuecomment-1048198384

macchky avatar Mar 01 '22 14:03 macchky

Im not sure whats going wrong but seems like its down again. Can anyone please check

soumya997 avatar Mar 02 '22 16:03 soumya997

@soumya997 Twitch Kraken (v5) API is now dead.

so fixed version here https://github.com/Ndragomirov/twitch-now/issues/265#issuecomment-1055508489

macchky avatar Mar 02 '22 16:03 macchky

Will there be an update to the chrome addons store?

B1ack3ye avatar Mar 02 '22 16:03 B1ack3ye

How do i install the extension from there? @macchky

soumya997 avatar Mar 02 '22 16:03 soumya997

Will there be an update to the chrome addons store?

Currently seams not. But you can use a fixed version here https://github.com/zm3y/twitch-now

padhie avatar Mar 02 '22 16:03 padhie

How do i install the extension from there? @macchky Files here https://github.com/Ndragomirov/twitch-now/pull/267#issuecomment-1048198384

Unzip .zip file and How to install the unpacked extension in Chrome - Webkul Blog

macchky avatar Mar 02 '22 16:03 macchky

It is saying, manifest file is missing. I cloned this repo, and tried to do load unpacked. cc: @macchky

soumya997 avatar Mar 02 '22 17:03 soumya997

It is saying, manifest file is missing. I cloned this repo, and tried to do load unpacked. cc: @macchky

NOT CLONE! Dowload zip file here https://github.com/Ndragomirov/twitch-now/pull/267#issuecomment-1048198384 chrome or opera

macchky avatar Mar 02 '22 17:03 macchky

What about firefox users?

Ansem93 avatar Mar 03 '22 13:03 Ansem93

I'm missing something? Here when i try to log in with twitch, only a page with "Hello!" is returned and the login process doesn't complete.

SirDuckMcDuck avatar Mar 03 '22 14:03 SirDuckMcDuck

I'm missing something? Here when i try to log in with twitch, only a page with "Hello!" is returned and the login process doesn't complete.

Yep...no idea what the point of this is if you can't login :/

Jfamig avatar Mar 04 '22 20:03 Jfamig

I'm missing something? Here when i try to log in with twitch, only a page with "Hello!" is returned and the login process doesn't complete.

I'm on Edge Chromium and I ran into the same issue. It turns out that the object changeInfo returned by the tabs.onUpdated event does not contain the URL information. As the result, injectScript fails to inject to the updated tab and thus the access token cannot be stored to Twitch Now. I don't know exactly the root cause of why changeInfo.url is undefined. Currently, I use tabs.get as a workaround to get the URL.

    // oauth2.js
    _browser.tabs.onUpdated.addListener(function (tabId, changeInfo) {
      _browser.tabs.get(tabId, (tab) => {
        if (tab.url && tab.url.indexOf(injectTo) != -1) {
          console.log("\nExecuting scripts");
          _browser.tabs.executeScript(tabId, { code: injectScript });
        }
      });
    })

1eft0ver avatar Mar 07 '22 11:03 1eft0ver

I'm missing something? Here when i try to log in with twitch, only a page with "Hello!" is returned and the login process doesn't complete.

I'm on Edge Chromium and I ran into the same issue. It turns out that the object changeInfo returned by the tabs.onUpdated event does not contain the URL information. As the result, injectScript fails to inject to the updated tab and thus the access token cannot be stored to Twitch Now. I don't know exactly the root cause of why changeInfo.url is undefined. Currently, I use tabs.get as a workaround to get the URL.

    // oauth2.js
    _browser.tabs.onUpdated.addListener(function (tabId, changeInfo) {
      _browser.tabs.get(tabId, (tab) => {
        if (tab.url && tab.url.indexOf(injectTo) != -1) {
          console.log("\nExecuting scripts");
          _browser.tabs.executeScript(tabId, { code: injectScript });
        }
      });
    })

For anyone wondering how to run this workaround. You need to edit the oauth2.js file in the common/lib folder. Search the original onUpdated function and replace it with this. Then refresh the extension and login. This worked for me personally.

GerwinVL avatar Mar 07 '22 13:03 GerwinVL

Hi, I am a newbie to coding, so I don't know anything about it that all of you guys wrote down. But I would be very grateful if someone could tell me if the extension will be working again as soon as before ?

ghost avatar Mar 11 '22 08:03 ghost

Hi, I am a newbie to coding, so I don't know anything about it that all of you guys wrote down. But I would be very grateful if someone could tell me if the extension will be working again as soon as before ?

https://github.com/Ndragomirov/twitch-now/pull/267#issuecomment-1048198384 Here you can download a working extension, and install it by yourlself. Follow the comments and there you'll find how to insall depending on your browser.

https://webkul.com/blog/how-to-install-the-unpacked-extension-in-chrome/ This is how you install on chromium

mateusjs avatar Mar 11 '22 12:03 mateusjs

What about firefox users?

Use this one here: https://github.com/Ndragomirov/twitch-now/pull/267#issuecomment-1049247939

Proaxel avatar Mar 18 '22 12:03 Proaxel

Thanks! Any hope to see an official update in the stores?

Ansem93 avatar Mar 21 '22 15:03 Ansem93