nikitakatchik/smarttv-twitch

Error : Unable to retrieve access token

lothrick opened this issue ยท 38 comments

Hi, I've been using Twitch app on my Samsung smart TV for like a year now with no issues at all.
Today I can't load any stream and dunno how to fix this. I tried reinstalling and forcing update withe the IP and dev Samsung account but it says my app is up to date.

Did anyone experience this issue today and know how to fix it??

same here since yesterday
you can try twitchmod for plex to watch till it get a fix
hope this app will get an update

poLmN commented

Looks like it's broken for everyone. Thought I'm the only one. Lets hope it's going to be fixed soon.

you can try twitchmod for plex to watch till it get a fix

Can you explain a bit more what's that? I'm kinda nooby :)

Ottha commented

Hey,
the reason is an Update in the twitch api which requires the requesting Source to be a verified client.
You can read it up here: https://m.reddit.com/r/Twitch/comments/52ta5d/twitch_api_clientid_enforcement_is_now_live_what/

If it's fine for the owner to have someone contribute I could check the change over the weekend maybe.

Plz be our hero Ottha ;)

Can you explain a bit more what's that? I'm kinda nooby :)

  1. just install plex app for your tv
  2. install plex server on your pc/media center
  3. add this plugin to your plex server: https://forums.plex.tv/discussion/178235/rel-twitchmod-twitch-tv-with-extra-features

seems plex is already fixed

still hope for this stand alone app to be continued

Well I did that and I give up. Plex doesn't work for me either. Keep getting "Unable to connect to the content server" error. I really hope someone will fix this app soon.

Have the same problem. I tried to reinstall the app, but when i start to sync the app i get the message "Error_Development_002". I am normally logged in with the develop. Someone got the same problem? I realy hope this is getting fixed, i use this app over a year now and i hate watching normal tv.. :(

+1

Should be just a matter of adding the Client-ID header to all the HTTP queries to the API. Not sure if this app has its own client ID, but as an interim we could just use the Client-ID twitch's own webapp uses (jzkbprff40iqj646a697cyrvl0zt2m6)

If that's the case maybe someone will try to fix this issue. I'm really not looking forward to watch Twitch on my PS4 or TV browser :(
Is there a way to contant the app creator maybe?

I'm here, boys ๐Ÿ˜„ So has anyone tried adding official client ID to the request? (At least in a browser)
The thing is I am not a registered developer within Twitch and don't have a client ID, I'm yet to look it up.

UPDATE. Ok, we got an ID.

I pulled the queries and ran them in curl, adding the Client-ID header and they alll worked fine

Hey, is the issue fixed?

Ottha commented

Cool we have one. I hope you didn't just use the one from the twitch app but created your own. I doubt twitch would be happy with other apps using 'mismatching' ids^^

Sorry guys I can't follow. How do we receive an Client-ID? Do I need to change any code, or can I simply update the app from my TV? Still not working atm :S
Cheers

Ottha commented

Hey, it's not fixed yet. I guess we should just wait a little longer until our mate has updated his could. Will be pretty soon I guess :)

Aight. Thanks. Found the error. But im unable to deploy... Ill just hang tight, thanks guys

poLmN commented

Any predictions when it's going to be fixed? Miss twitch :/

KZN1 commented

FeelsBadMan

Do you guys also get this "Error_Development_002" if you want to sync the app again?

northlane94 I'm having that error aswell =/ FeelsBadMan

poLmN commented

Well it wont work untill someone fixes it and uploads new version

Anyone planning to upload a fix ? or should I start looking into this ?

MKVD appears to be on it. They mentioned in a previous comment the acquisition of a "Client ID" which is newly required by the twitch api. Can we get an ETA?

Yeah an update or ETA would be great

Weird. Adding
xmlHttp.setRequestHeader('Client-ID', 'anwtqukxvrtwxb4flazs2lqlabe3hqv');
after each creation of a XMLHttpRequest instance didn't help.

@mkvd That's because it needs to be added after open and before send, as mentioned here: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader

@mkvd That's because it needs to be added after open and before send, as mentioned here:

Right, I should have paid more attention to that page ๐Ÿ˜ƒ

App seems to be working now, I just uploaded the updated version to both github releases section and our sync server. Client-ID of this app is unique. ๐Ÿ˜„

And now hen I import new app, there is no run as > tizen web app. now there is run as>run configurations.... :[

@mkvd you're a god :) thx a lot my APP is working now. Just had to delete and reinstall it

oh just found out this is not the 2016TV branch, sorry

My god, thanks alot @mkvd you are the man ! It works again, THANK YOU !!

jazha commented

Is the sync server down? Getting "Error_Development_002" , and I cannot figure out why :/

--- Nevermind, after uninstalling I had to restart my TV, relog as develop and add the ip settings again. Then it worked, thanks!

Sorry for being a bit dumb, but for me it was a significant milestone to even install the Twitch app on my TV. :) So how can I make it work again please? I tried to download the new ZIP folder, but I got stuck at the same spot as @whitedragonLT (that Run Configurations... option), I must be missing something...

@kerolajna i know how you feel, same for me. I recommend you to simply install it by syncing the app with your TV. That was the easiest way for me. Just follow the README -> https://github.com/mkvd/smarttv-twitch

I just found a ZIP folder made by @whitedragonLT for 2016 TV and it works! Finally! Thanks a lot. :)

I get "Error: Unable to load stream data" after 15 replies using the version 3.6.

Anyone could help me out? thanks.