nikitakatchik / smarttv-twitch

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

Unable to receive access token #111

Closed Ottha closed 6 years ago

Ottha commented 6 years ago

For some reason I can’t load streams anymore because the app shows the mentioned error. Could not determine the reason as it does not look like anything in the auth management for the twitch api changed. Maybe more info is available when debugging.

founias commented 6 years ago

i have the same problem. I have a 2014 UE40H6400 and i was using the twitch tv app for 2 years. Today i changed my internet connection from adsl to vdsl and also changed routers. Started the twitch app on my tv,chose a channel and after it loads 15/15 i get the Error : Unable to retrieve accerss token. Deleted the app, installed the Twitch Tv BrunoN with the SammyWidget (i was using the old twitch app with just the ip adress while in develop mode) but still nothing.Even changed my dns settings to google ones but nothing changed

JaysonStatham commented 6 years ago

Looks like Twitch has removed support for non HTTPS requests to the API

This issue can be fixed by replacing line 536 in SceneChannel.js from:

theUrl = 'http://api.twitch.tv/api/channels/' + SceneSceneBrowser.selectedChannel + '/access_token';

to

theUrl = 'https://api.twitch.tv/api/channels/' + SceneSceneBrowser.selectedChannel + '/access_token';

I've opened pull request #112 which fixes the problem. @nikitakatchik

sqbi87 commented 6 years ago

Hi guys, can anyone fix this new issue with being unable to load any stream so noobs like me can enjoy Twitch app once again on their TV? Is it possible for me to simply update the app via my TV settings?

Ottha commented 6 years ago

You‘ll have to wait until the above pull request is merged and a new version created. I guess the creator of the app will let us know in this Channel once it’s done. Edit: And right as I wrote, the pr got merged :)

nikitakatchik commented 6 years ago

Hi, can someone please try this version before I publish it as a release. TwitchTV_3.7_America_20180510.zip

Curtainfalls commented 6 years ago

Heyho is the new Version online and can i just Update it or do i have to reinstall? :)

fpontef commented 6 years ago

After the changes, on app/scenes/SceneChannel.js I cloned the repo, removed the .git and .gitignore files, zipped and uploaded to my TV. Everything is working fine. Thanks.

My model: Samsung UN46F6800 - Working with version 3.7.

nikitakatchik commented 6 years ago

I meant exactly the package I posted 😃

Bvlent commented 6 years ago

Hi,

I've tested your package and it seems to be working. Downloaded the zip, extracted to a USB drive. Plugged it in and it appeared in the Hub. Started from there and streams can be viewed again.

Model: UE48H5500

Thanks!

Ottha commented 6 years ago

@nikitakatchik could you put a link to the readme pointing to the Samsung docs about how to get apps to the tv? I guess there are multiple ways but I couldn’t find the most convenient one for me yet. Used the old way with your server for sharing but didn’t check out at that point how it works.

nikitakatchik commented 6 years ago

Good work everyone, it's now published as release 3.7.

@Ottha Okay, I'll post some official links.