SpaceOgre / smarttv-twitch

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

Can't load data stream or unable to access token #12

Open Resi70 opened 4 years ago

Resi70 commented 4 years ago

Hello, i am able tot push this release to my UE46ES7000 tv but after opening te app no channels will load.

After load i get the error "no stream data loaded" when i do a refresh i the error "unable to access token".

Do i have to create in this release my own API key? I did not see anythink about this in the readme so i am wondering why its not working.

SpaceOgre commented 4 years ago

Which release did you download?

Resi70 commented 4 years ago

3.9.2

SpaceOgre commented 4 years ago

It should work, unless Twich has banned the new Client-ID.

Please try and generate your own Api key and test.

Fansh1ne commented 4 years ago

3.9.2 working here. Did you enter username/userid?

Resi70 commented 4 years ago

3.9.2 working here. Did you enter username/userid?

Yes i added my username in the config.js

Fansh1ne commented 4 years ago

Weird. Try changing client id as mentioned above.

Resi70 commented 4 years ago

It should work, unless Twich has banned the new Client-ID.

Please try and generate your own Api key and test.

I can't get it to work :(

Here are the steps i followed. I used every time the clean downloaded version.

See screenshot. Maybe some fields have not the correct values. I did hide my api key in this image

twitch

Any suggestions?

SpaceOgre commented 4 years ago

You get the error when trying to play a channel?

Resi70 commented 4 years ago

Direct after the app has loaded i see a count from 0 tot 15 and then the error "unable to load stream data". Also when i click on A,B,C or D i get this same error. When i click on the remote on button in the middle of the left, right, up and down arrows i get the message "unable to retrieve acces token".

SpaceOgre commented 4 years ago

Oh that is weird then, it seems like the app might not be able to connect to the Internet at all. The Client-ID problem should only affect playing a channel not loading the lists.

Stupid question but do you have other apps on your TV that can access Internet?

Resi70 commented 4 years ago

Yes, i can brows internet with the browser and use the other apps that need internet like netflix and videoland.

SpaceOgre commented 4 years ago

To know more I would need to do a testversion that prints more specific error messages. This I will not be able to do for a while because of the holidays.

What happens if you enter this url in the tvs browser: https://api.twitch.tv/helix/streams?game_id=33214 You should get a 401 error

Resi70 commented 4 years ago

Hoping you all did have great Christmas 😀

Thank you for your suggestion👍. It is really strange. I can't visit twitch urls in my browser. Its get redirected to a local file url. If i visit https://twitch.tv i see this url in the browser. 20191225_023618

I did try to reset my to to factory default and even switch my smart hub to a other country and back. Still the same. I can visit other sites.

SpaceOgre commented 4 years ago

This is really weird, did you install the app via Sammy Widgets?

Does redirect happen in the browser even if the app Is not installed?

Resi70 commented 4 years ago

Yes i always used sammy Widgets for installation. The problem still exists after removal from the twitch app. Even after a factory default from the tv and a reset from the smart hub.

Seems that all outgoing connections with the twitch word in it gets blocked. Maybe a software issue.

My tv software version is 002022 and my models tv is UE46ES7000.

SpaceOgre commented 4 years ago

Sorry I am out of ideas, did a search for the problem but did not find any thing.

Might be hard to fix since the problems seems to be in your TVs routing. Maybe try and contact Samsung support or try their forums.

Fansh1ne commented 4 years ago

It might be your router blocking some connections. Try to check router firewall settings.

Resi70 commented 4 years ago

I did some tests. Its not my router. I connected my tv wireless to my 4g hotspot (other ISP) and still the same problem.

Maybe it has something to do with the supported TLS version. When i visit duckduckgo.com with my tv browser i get a announcement about end of support tls version 1.0. Maybe twitch does not support this old version also. In the past everything was http now it is https.

SpaceOgre commented 4 years ago

Yeah that could be it, I think Twitch only support 1.2 from what I could find.