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

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

Open
nthnwllms opened this issue Feb 7, 2022 · 32 comments

Comments

@nthnwllms
Copy link

😥 Sad days 🪦

@Abalieno
Copy link

Abalieno commented Feb 7, 2022

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

@zm3y
Copy link
Contributor

zm3y commented Feb 8, 2022

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.

@TheKins
Copy link

TheKins commented Feb 14, 2022

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.)

@Necr0fantasia
Copy link

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?

@B1ack3ye
Copy link

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

@TheKins
Copy link

TheKins commented Feb 15, 2022

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

@zm3y
Copy link
Contributor

zm3y commented Feb 16, 2022

#267

@tobim91
Copy link

tobim91 commented Feb 16, 2022

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

@soumya997
Copy link

soumya997 commented Feb 16, 2022

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

@ghost
Copy link

ghost commented Feb 23, 2022

@TheKins you should check this out Twitch Live Extension

but why?. look #267 its already fixed and working.

@soumya997
Copy link

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.

@macchky
Copy link

macchky commented Mar 1, 2022

It stopped working for me yesterday.

#265 (comment)

@macchky
Copy link

macchky commented Mar 1, 2022

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
#267 (comment)

@soumya997
Copy link

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

@macchky
Copy link

macchky commented Mar 2, 2022

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

so fixed version here
#265 (comment)

@B1ack3ye
Copy link

B1ack3ye commented Mar 2, 2022

Will there be an update to the chrome addons store?

@soumya997
Copy link

How do i install the extension from there? @macchky

@padhie
Copy link

padhie commented Mar 2, 2022

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

@macchky
Copy link

macchky commented Mar 2, 2022

How do i install the extension from there? @macchky
Files here
#267 (comment)

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

@soumya997
Copy link

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

@macchky
Copy link

macchky commented Mar 2, 2022

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
#267 (comment)
chrome or opera

@Ansem93
Copy link

Ansem93 commented Mar 3, 2022

What about firefox users?

@SirDuckMcDuck
Copy link

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.

@Jfamig
Copy link

Jfamig commented Mar 4, 2022

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 :/

@1eft0ver
Copy link

1eft0ver commented Mar 7, 2022

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 });
        }
      });
    })

@GerwinVL
Copy link

GerwinVL commented Mar 7, 2022

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.

@ghost
Copy link

ghost commented Mar 11, 2022

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 ?

@mateusjs
Copy link

mateusjs commented Mar 11, 2022

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 ?

#267 (comment)
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

@Proaxel
Copy link

Proaxel commented Mar 18, 2022

What about firefox users?

Use this one here:
#267 (comment)

@Ansem93
Copy link

Ansem93 commented Mar 21, 2022

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

@scholtzm
Copy link

scholtzm commented Apr 4, 2022

I would highly recommend switching over to Gumbo: https://github.com/Seldszar/Gumbo

It's missing some features but it's actively developed and future proofed already for Manifest v3 web extension format.

@ani917
Copy link

ani917 commented May 31, 2022

"I would highly recommend switching over to Gumbo: https://github.com/Seldszar/Gumbo"
у дополнения иконка странная а так вроде нормально

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests