fgl27 / smarttv-twitch

Twitch client for Samsung Smart TVs 2015 and newer models, in doubt read the README bellow
GNU General Public License v3.0
171 stars 19 forks source link

"Connection failed, unable to load content" and "User doesn't exist" errors #298

Open georgebvro opened 2 months ago

georgebvro commented 2 months ago

Hello,

There is an issue suddenly starting a couple of days ago. I was actually watching a channel and when I exited the live stream and went to the menu, the problems started.

When navigating to User Menu -> Live, User Menu -> Channels, Main Menu -> Live, Main Menu -> Games etc., so pretty much any screen where something must load, an error message is displayed: "Connection failed, unable to load content. Hit refresh to try again".

I deleted my user in the app with the intention of reconnecting it but now when I enter the user it says "User doesn't exist". The user exists though, I tried relogging with it on the Twitch website and it works fine. However, I've created a new user on Twitch website just to try with it also and the same thing happens when I use the "Add User" functionality in the app: "User doesn't exist", so I can't reach the screen where I could enter the authentication key.

I wonder if anyone else has these issues and what else I could try.

Device: Samsung 40JU7000 OS: Tizen 2.3 App: 4.0.1.December 01 2023 (as reported in the app)

Thanks for supporting this project!

pnrxtx commented 2 months ago

Yea "connection failed" since some days now.

fgl27 commented 1 month ago

Is fine for me, with and without a user.

Are we OK?

If you don't add a user you run in guess mode, all users in guess mode share the same authentication, which is limited, if too many are using the app you get those errors.

But that is for those who are using without a user.

So let me know if we are OK or not.

pnrxtx commented 1 month ago

I'm signed in but "connection failed, unable to load content ...."

georgebvro commented 1 month ago

Sorry for the late reply but, unfortunately, it's the same situation.

Because I can't add a user I can't check User Menu functionality but before I removed the user it didn't work as well (I remember User Menu -> Live and User Menu -> Channels didn't work for sure).

Let me know how can I help with diagnosing the problem (logs, debugging etc.).

Thank you for the help!

fgl27 commented 1 month ago

Something on your network is blocking

For me is fine all of those steps you did all fine.

You can try to debug the app to see if something comes up

Do you know how to debug?

georgebvro commented 1 month ago

No, I don't know how. Are there instructions somewhere?

fgl27 commented 1 month ago

Region on the globe (the flat for some😁 ) ?

so we know if it's a region thing.

georgebvro commented 1 month ago

Europe, Romania.

fgl27 commented 1 month ago

Here is the how to log

https://github.com/fgl27/smarttv-twitch/issues/250#issuecomment-1328306442

Once the app load, in the console tab of the browser you must see some red lines

Those usually have a button that can be clicked to expand

That may show the issue

If not I'll add better logging but first I need to see where the logs are coming from

georgebvro commented 1 month ago

Ok, I'll follow instructions to debug but I can't do it today, I'll have to try tomorrow.

georgebvro commented 1 month ago

When I start the app in Debug mode, I get this error in Tizen Studio. image

Starting the app in normal mode works fine (but the same problems described in this issue remain). I'll try more tomorrow. I have an old version of Tizen Studio installed (v3.2) and old certificates as well. Probably old TV-Extensions too.

Maybe some of these cause the failure to start in Debug mode, even though it starts in normal mode just fine. If you have other ideas about why it might fail, please let me know.

Thanks!

NSV-dev commented 1 month ago

Hey same issue here i've got logs

image

NSV-dev commented 1 month ago

Here i'm trying to login image

NSV-dev commented 1 month ago

And just in case if you need this) image

fgl27 commented 1 month ago

I see https issue.

Some Samsung tv have that

There is a settings option Force http set it to yes and let me know the result

NSV-dev commented 1 month ago

Here is smth interesting "Featured" pages works fine and i even got some random stream image

NSV-dev commented 1 month ago

I see https issue.

Some Samsung tv have that

There is a settings option Force http set it to yes and let me know the result

after switching to yes nothing changed and calls are still https on console

image

fgl27 commented 1 month ago

Different screens use different APIs

Does the http workaround works or not?

NSV-dev commented 1 month ago

Different screens use different APIs

Does the http workaround works or not?

no, i switched it. do i need to restart after that or smth else to save options?

fgl27 commented 1 month ago

You have to change the setting after installing the app

After each installation the settings reset

NSV-dev commented 1 month ago

well in settings it says "yes" but nothing changes

NSV-dev commented 1 month ago

same image

NSV-dev commented 1 month ago

I don't think it's smth on my side. It started few days ago and you can see that at least 2 more people having same issue. I'm from Russia, george is from Romania. Different networks at all, same os and same issue

DeneXX1 commented 1 month ago

Got same Problem Im from Germany

georgebvro commented 1 month ago

Somehow it managed to work today in Debug mode and I have identical logs with @NSV-dev.

fgl27 commented 1 month ago

The issue is on the TV, Samsung is causing this with their silent updates that disable support of some HTTPS calls, they affect more than just this app so eventually they push a fix.

In the meantime, the HTTP workaround was only for the player URLs, not for the general content API.

I enabled it for the falling API, but it isn't a 100% fix as it may not work.

try and let me know.

NSV-dev commented 1 month ago

where to find fixed version?

fgl27 commented 1 month ago

where to find fixed version?

the app receives when you open it

fgl27 commented 1 month ago

I have updated the version date in about of the app so you can have a tell

georgebvro commented 1 month ago

I've started the app but it only shows a black screen. It has been like this for a few minutes.

NSV-dev commented 1 month ago

yep same

NSV-dev commented 1 month ago

debug console is empty and screen is just black

fgl27 commented 1 month ago

is fine for me

fgl27 commented 1 month ago

try a power off from the wall

georgebvro commented 1 month ago

Sadly, that doesn't fix the problem. Screen still black after starting the app and the debug console has not a single message.

NSV-dev commented 1 month ago

I disconected connect box from tv, can't disconect tv without unmounting it, didn't work

fgl27 commented 1 month ago

I revert the http changes to general API, does it works now?

NSV-dev commented 1 month ago

no changes for me, still black screen

fgl27 commented 1 month ago

not even a spinner in the center?

georgebvro commented 1 month ago

Nope, absolutely nothing.

NSV-dev commented 1 month ago

no, but after a while there is a sound like switching between buttons

fgl27 commented 1 month ago

what if you install the app again but if you change below line in the index.html to remove the s from https

https://fgl27.github.io/smarttv-twitch/release/githubio/js/master.js

fgl27 commented 1 month ago

may is needed to replace all 'https://fgl27.github.io' with 'http://fgl27.github.io'

remove the s

NSV-dev commented 1 month ago

yes it helps, changed all github to http and now i have previous problem again

fgl27 commented 1 month ago

yes it helps, changed all github to http and now i have previous problem again

can you close the app and try again now?

I push a change I need to know if that bricks the app

NSV-dev commented 1 month ago

black screen again

fgl27 commented 1 month ago

one sec

fgl27 commented 1 month ago

OK, there was a dependency bugging out the files in git (only affects some devices), not related to the problem of the HTTP...

So I fixed the dependency to avoid a black screen

and push the HTTP changes again

please test now and let me know the result

NSV-dev commented 1 month ago

image

NSV-dev commented 1 month ago

this is with force http "yes"