nikitakatchik / smarttv-twitch

Twitch app for Samsung Smart TV
GNU General Public License v3.0
290 stars 84 forks source link

Error : Unable to retrieve access token #89

Open lothrick opened 8 years ago

lothrick commented 8 years ago

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??

madbatwithhat commented 8 years ago

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 8 years ago

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

lothrick commented 8 years ago

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 8 years ago

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.

lothrick commented 8 years ago

Plz be our hero Ottha ;)

madbatwithhat commented 8 years ago

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

lothrick commented 8 years ago

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.

northlane94 commented 8 years ago

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.. :(

abacha commented 8 years ago

+1

xXxBreak commented 8 years ago

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)

lothrick commented 8 years ago

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?

nikitakatchik commented 8 years ago

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.

xXxBreak commented 8 years ago

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

Cbroeter commented 8 years ago

Hey, is the issue fixed?

Ottha commented 8 years ago

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^^

g1raffi commented 8 years ago

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 8 years ago

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

g1raffi commented 8 years ago

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

poLmN commented 8 years ago

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

KZN1 commented 8 years ago

FeelsBadMan

northlane94 commented 8 years ago

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

brenocibin commented 8 years ago

northlane94 I'm having that error aswell =/ FeelsBadMan

poLmN commented 8 years ago

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

JavonneM commented 8 years ago

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

NovaInferno commented 8 years ago

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?

lothrick commented 8 years ago

Yeah an update or ETA would be great

nikitakatchik commented 8 years ago

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

lestera commented 8 years ago

@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

nikitakatchik commented 8 years ago

@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. 😄

whitedragonLT commented 8 years ago

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

lothrick commented 8 years ago

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

whitedragonLT commented 8 years ago

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

northlane94 commented 8 years ago

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

jazha commented 8 years ago

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!

kerolajna commented 8 years ago

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

northlane94 commented 8 years ago

@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

kerolajna commented 8 years ago

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

frozywozy commented 7 years ago

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

Anyone could help me out? thanks.