-
Notifications
You must be signed in to change notification settings - Fork 841
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
[Bug]: Both Local and Individuous API don't work. Pulling Null of Video #5534
Comments
I've found your bugfix:
Change the last line to v0.21.3 beta. 😅 |
I have actually figured out that my VPN, Private Internet Access, doesn't play well with FreeTube. Can't figure out why. |
I met the same error |
This comment has been minimized.
This comment has been minimized.
@kasselvania Can you try opening the devtools with Cmd+Shift+I and look at the console tab? Maybe that has more about details about the error messages. Additionally does this happen with every video or only specific ones? |
I would assume this is just the same problem invidious is having, with videos not available unless signed in. Newpipe is also affected. but not everybody is stuck with this because it will depend on your IP address, among other things (VPN is more likely to be affected, because so many people share an IP address, youtube is a lot more likely to demand a log in for "verification" reasons.) PS: copy youtube link for the video, open it in a web browser, and find out that it will require you to log in before you can watch the video here as well. |
Honestly? There is no way to tell what kind of video will work, as apposed to others. If I open the developer tools, I see stuff like this screenshot. @Ammako I will try logging in and see if that corrects my issue! Thanks for the suggestion! |
@Ammako Even if that is the case, I think we can all agree that it would be better to figure out what YouTube returns in that case so that FreeTube can show a proper error message instead of breaking like it does now. |
@kasselvania Interesting, I'm guessing you got a different error messages in the toasts/popups this time (something a long the line of failed to fetch)? So this time it seems like you got a different problem, the last red message says Try connecting and disconnecting from your VPN, to solve the problem you got this time. As for the original problem, it seems like that is still somewhat of a mystery. |
@absidue i still get the error in the main window like above not pulling Null from the video, and the video stating it’s from Dec 31, 1960, with no data presented. I usually need to quit Freetube, turn off my VPN, and then reopen freetube WITHOUT my VPN for a few videos for it to work again. Then, once it’s running, for a video or two, I can add the VPN back into the mix again. This problem is pretty frequent, though. |
It's weird, because piped, invidious, and newpipe all get the clear "Sign in to confirm you're not a bot" error directly. but I guess Freetube handles youtube differently than those three do. |
Yeah I get this problem consistently when on my VPN also, it falls back to Invidious. |
If someone could capture what the response from YouTube looks like when that error occurs, that would help a lot in trying to figure out what is going on, as I've not been able to reproduce this on various VPN IP addresses. Here is how you could do that:
|
Okay so as expected the cause of the error is that you are using a VPN IP address that is blocked by YouTube. FreeTube needs to display a better error message when that happens but the only way to prevent it happening is to use a different VPN IP address that isn't blocked. |
How about adding optional login box in Freetube for such cases? |
Firstly that would go against FreeTube's primary goal of being a privacy friendly app and secondly despite the error message suggesting you login, I would really not recommend doing that on a blocked IP even in your web browser unless you want your Google account blocked (people that have tried to use logging in to bypass IP blocks have had their accounts blocked). |
source on people getting their google account blocked for logging in on web/official youtube app from these kind of vpn ips? |
I think you may have misinterpreted the message or I wasn't clear enough in my writing. |
This comment has been minimized.
This comment has been minimized.
The resolution to this issue will be for FreeTube to show a better error message that explains that you need to change to a new IP address, something along the lines of: "YouTube has blocked the IP address that you are using so you can no longer watch videos on it, if you are using a VPN try changing to a different server in your VPN settings, if you are not using a VPN or a proxy, you will have to start using one" |
For those who can't find a working VPN and who really would rather not turn off VPN (or if your home IP is also blocked), I think it's worth suggesting invidious as an alternative in the error message, because most instances have a functional workaround implemented by now. |
There's currently a setting to Proxy Videos Through Invidious, which overrides API preference. It would be helpful if this could be used as a fallback in case Local API is blocked due to VPN use. |
@Victor239 FreeTube already falls back to the Invidious API if the local API fails and vice versa, as long as you haven't turned off the You can see the fallback in action in the screenshot in the description of the issue, they were just unlucky enough to also be using an Invidious instance that was broken which is why it still didn't work even after falling back to the Invidious API. |
Hello, I'm not even on VPN but still local api not working. "Error: This helps protect our community. Learn more" |
@Yolakalemowa That error is coming from Invidious, as is explained in the "maintainer edit" section of the top post, you need to stop using Invidious for the moment, until they have found a solution on their end. |
sorry bit of a noob here. But yes I thought I wasn't using Invid. I chose preferred api backend as local API not Invid. Or am I miunderstanding? |
Hi... what does this window mean? |
Environment: freetube v0.21.3 Beta .deb (also tested with v0.21.1 .deb) amd64 or flatpak install, Ubuntu 24.04.1 LTS, custom t2 kernel Linux 6.11.0-1-t2-noble, MacPro 7,1. Internet works, Firefox works, OpenVPN running, Wifi or LAN. Getting the same issues recently, and it looks like an Error that connection is refused. I tried multiple invidious instances that are supposed to be up, but did not change the behaviour. Using local API only without invidious does not work either. Sorry have to post screenshots because when I try to save the information FreeTube crashes. Different instance gives slightly different result: And with 21.1 without invidious: The way it shows up is that videos cannot be played, while subscription image previews show fine: |
A note for everyone commenting below: The "this helps protect our community" or "this content isn't available" is not a freetube error |
@CaptainMorgan12 As mentioned earlier in the thread "Cannot read properties of null" is the error that happens with the local API when YouTube has blocked your IP address (FreeTube is failing to read the error message from YouTube's response but it is getting the same error message from YouTube that blocked Invidious instances get). You need to change to a different IP address, by the sounds of it you are using a VPN so you should use a different VPN IP. |
Hi, Sorry to bother you again but I tried the above recommendations and still not working: |
Is anyone here using a VPN service that is free to use and getting IP blocked? If so please provide the following details
|
I've been getting this error without even having a VPN installed at seemingly-random, which is lovely. |
@VideoGames1000 Are you just using FreeTube or also doing things like downloading videos with yt-dlp? According to this comment here, using yt-dlp a lot can also cause the errors: #5750 (comment) |
Casual (if fairly frequent) Freetube use, I've only downloaded one or two videos total since this started happening. |
Based on getting 0 responses on this request I assume that nobody that is using a free VPN service is getting hit by this Requesting the following info, please provide the following info if you are using a paid VPN service and getting IP blocked:
|
@efb4f5ff-1298-471a-8973-3d47447115dc |
@EugeneDubuk Sure, how do you wish to send over the details? |
@efb4f5ff-1298-471a-8973-3d47447115dc |
Note Email alias will be disabled after receiving the details. |
@efb4f5ff-1298-471a-8973-3d47447115dc |
Will respond when im behind my machine can take a few days though |
Hi I'm still getting an error on local api ... local api error: error: please sign in. Is there any suggestion to fix it? Much appreciated |
@Yolakalemowa Make sure you are using the local API and have Player Settings -> Proxy Videos through Invidious disabled. If both of those things are already the case, then you need to change to a different IP address (e.g. different VPN server or proxy server), the next release will show a better error message but as the block is against the IP address and not FreeTube there isn't much we can do about it. |
thanks but that's the weird thing. I have those settings as described, and I'm not even using a vpn :S |
@Yolakalemowa As you seem to be saying that your home IP address is blocked, I would suggest using a VPN or a proxy for the moment. |
@EugeneDubuk yesterday I found an server that was IP blocked. The account isnt needed anymore. Thankyou for providing it anyway! |
The cause of the local API error is that you are using a VPN or proxy IP address that is blocked by YouTube. FreeTube needs to display a better error message when that happens but the only way to prevent it happening is to use a different VPN or proxy IP address that isn't blocked.
The Invidious error is caused by Invidious instances getting blocked by YouTube, there is nothing we can do about it on the FreeTube side, you just have to be patient and wait for the Invidious maintainers to find a solution and for the people hosting Invidious instances to implement said solutions.
Guidelines
Describe the bug
Whenever attempting to open a video, I am greeted by messages that say:
"Local API Error: Type Error: Cannot read properties of null (reading 'reason'). Then, Invidious API error: Error: Missing harsh key "videoDetails"
I cannot get any videos to play
Expected Behavior
I would expect to click the video link and have the video play.
Issue Labels
API issue
FreeTube Version
v0.21.3 Beta
Operating System Version
macOS Sonoma 14.6
Installation Method
.dmg
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
v0.21.1 Beta
Additional Information
No response
Nightly Build
The text was updated successfully, but these errors were encountered: