FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.36k stars 823 forks source link

[Bug]: API fetch fails for Most Poppular #4140

Closed KSterner2 closed 1 year ago

KSterner2 commented 1 year ago

Guidelines

Describe the bug

When clicking on the Most Popular sidebar button, API failed to fetch.

Screenshot 2023-10-12 at 1 16 43 PM

Expected Behavior

Display popular videos.

Issue Labels

API issue

FreeTube Version

0.19.1

Operating System Version

macOS

Installation Method

.dmg

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Please send a screenshot of your Settings -> General settings

KSterner2 commented 1 year ago
Screenshot 2023-10-15 at 11 07 58 AM
efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

I notice that u dont have a default invidious instance set. Can u remember on what instance this error occurred?

KSterner2 commented 1 year ago

Yes its anytime I try to click on the side bar column and load up "most popular" videos. I also just recently updated the newest version and It works 50% of the time. Sometimes i can get it to pop up, and other times i get this fetching error to pop up.

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Is it only the failed to fetch error or do you also get other errors?

KSterner2 commented 1 year ago

As far as I can tell it is the only the failed to fetch error.

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Could u do the following:

Open FT -> Open console (CTRL+SHIFT+i) -> Go to Most Popular page -> Make a screenshot of the errors that popup in the console

KSterner2 commented 1 year ago

Okay closing when I closed then reopened FT I was able to get the Most Popular page to work this time but here's a screen shot of the warnings I get. In the mean time I'll try again to see if I can get the failed catching errors.

Screenshot 2023-10-15 at 12 01 55 PM
KSterner2 commented 1 year ago

Heres the Failed catching errors:

Screenshot 2023-10-15 at 12 04 46 PM
efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

To clarify on the error in console: The closed stream error u see in the red is expected as this instance does not have a most popular page https://yt.artemislena.eu/. That means if u want to see content on the most popular page u should switch to an instance that has that on their site

KSterner2 commented 1 year ago

Oh so is that why it's working 50% of the time?

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Im not 100% sure about that because i didnt see the failed to fetch error and closed stream error together

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Could u try one of these instances they should work because they have most popular enabled:

Edit: I would also recommend to go to https://api.invidious.io/?sort_by=version -> Check which instance is close to u -> select instance that is updated this month -> go check if they have most popular enabled on their site -> use that instance in FT and set it to default

KSterner2 commented 1 year ago

Okay I've tried a couple of those instances and it works.

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Closing this issue, if this comes back feel free to reach out

absidue commented 1 year ago

Oh so is that why it's working 50% of the time?

Because FreeTube picks a random instance from api.invidious.io at startup unless you have hardcoded one.

sutex commented 10 months ago

API error - So I'm unable to play Live news stream that are on You tube. https://www.youtube.com/watch?v=vOTiJkg1voo