Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
georgebvro opened this issue Sep 14, 2024 · 65 comments

Comments

@georgebvro
Copy link

georgebvro commented Sep 14, 2024

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
Copy link

pnrxtx commented Sep 14, 2024

Yea "connection failed" since some days now.

@fgl27
Copy link
Owner

fgl27 commented Sep 15, 2024

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
Copy link

pnrxtx commented Sep 16, 2024

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

@georgebvro
Copy link
Author

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

  • When using Add User functionality, after entering a valid, existing user, the message "User doesn't exist" is displayed and it doesn't get to the screen where I could enter the authentication key
  • Main Menu -> Live gives message "Connection failed, unable to load content. Hit refresh to try again" and doesn't display anything
  • Main Menu -> Featured doesn't give error and displays 10 streams that can be viewed
  • Main Menu -> Games gives message "Connection failed, unable to load content. Hit refresh to try again" and doesn't display anything
  • Main Menu -> Videos doesn't give error and displays some VoDs that can be viewed
  • Main Menu -> Clips doesn't give error and displays some Clips that can be viewed

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
Copy link
Owner

fgl27 commented Sep 16, 2024

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
Copy link
Author

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

@fgl27
Copy link
Owner

fgl27 commented Sep 16, 2024

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

so we know if it's a region thing.

@georgebvro
Copy link
Author

Europe, Romania.

@fgl27
Copy link
Owner

fgl27 commented Sep 16, 2024

Here is the how to log

#250 (comment)

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
Copy link
Author

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

@georgebvro
Copy link
Author

georgebvro commented Sep 16, 2024

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
Copy link

NSV-dev commented Sep 16, 2024

Hey same issue here i've got logs

image

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

Here i'm trying to login
image

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

And just in case if you need this)
image

@fgl27
Copy link
Owner

fgl27 commented Sep 16, 2024

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
Copy link

NSV-dev commented Sep 16, 2024

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

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

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
Copy link
Owner

fgl27 commented Sep 16, 2024

Different screens use different APIs

Does the http workaround works or not?

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

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
Copy link
Owner

fgl27 commented Sep 16, 2024

You have to change the setting after installing the app

After each installation the settings reset

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

well in settings it says "yes" but nothing changes

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

same
image

@NSV-dev
Copy link

NSV-dev commented Sep 16, 2024

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
Copy link

DeneXX1 commented Sep 17, 2024

Got same Problem
Im from Germany

@georgebvro
Copy link
Author

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

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

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
Copy link

NSV-dev commented Sep 17, 2024

where to find fixed version?

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

where to find fixed version?

the app receives when you open it

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

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

@georgebvro
Copy link
Author

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

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

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

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

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

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

no changes for me, still black screen

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

not even a spinner in the center?

@georgebvro
Copy link
Author

Nope, absolutely nothing.

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

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

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

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
Copy link
Owner

fgl27 commented Sep 17, 2024

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

remove the s

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

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

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

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
Copy link

NSV-dev commented Sep 17, 2024

black screen again

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

one sec

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

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
Copy link

NSV-dev commented Sep 17, 2024

image

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

this is with force http "yes"

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

this is with force http "yes"

are you sure

for me shows like this

image

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

maybe I'm doing smth wrong)

here was a link to video of app running

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

maybe I'm doing smth wrong) https://imgur.com/a/ov0DV1v

seems right

what version shows in the about of the app... it must be 4.0.1 September 17 2024 - 3

seems that you aren't receiving the update

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

there is september 17 in logs

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

yes my version is 4.0.1 September 17 2024 - 3

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

I don't know why doesn't change then for me changes just fine... let me see if I can add some extra logs one sec

image

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

I changed to 4.0.1 September 17 2024 - 4 try again to see if there is a new log when you switch to HTTP

@NSV-dev
Copy link

NSV-dev commented Sep 17, 2024

thats funny)
image

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

the SSL error is gone, but the device can't make a request to that API using HTTP only

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

Not much else to do here

we need wait Samsung to update the device certificates, which will fix the SSL handshake issue

@fgl27
Copy link
Owner

fgl27 commented Sep 17, 2024

In the meantime I can migrate some API to working API when available, when I do I'll update here

@DeneXX1
Copy link

DeneXX1 commented Sep 20, 2024

Not much else to do here

we need wait Samsung to update the device certificates, which will fix the SSL handshake issue

Maybe it will help you in some way the featured streams in the main menu are working with force http "yes"

Could you perhaps temporarily install a function where you can open the stream directly by typing in the streamer name?

So the player opens directly when you type in the name of the live stream, maybe this work?

@fgl27
Copy link
Owner

fgl27 commented Sep 20, 2024

Not much else to do here
we need wait Samsung to update the device certificates, which will fix the SSL handshake issue

Maybe it will help you in some way the featured streams in the main menu are working with force http "yes"

Could you perhaps temporarily install a function where you can open the stream directly by typing in the streamer name?

So the player opens directly when you type in the name of the live stream, maybe this work?

I don't wanna to add workarounds as the one you request takes more time to me to make then to migrate a API for example to the search API that allows to search, Lives, videos, channels or games

@fgl27
Copy link
Owner

fgl27 commented Sep 20, 2024

I don't have much time that is why I have not updated this...

if anyone has just updated the app, this is an open-source project and the Android version of the app https://github.com/fgl27/SmartTwitchTV has all the necessary updates in place.

@DeneXX1
Copy link

DeneXX1 commented Oct 16, 2024

Is it working again for anyone?
The app hasn't worked for me since then and Samsung won't release any updates for the old Tvs either im Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants