FreeTubeApp / FreeTube

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

[Bug]: subscription logos and thumnails doesn't load when used behind a proxy since version 0.20 (regression) #5392

Closed adren closed 1 week ago

adren commented 2 months ago

Guidelines

Describe the bug

Since the 21st of June 2024 with version 0.21.0 and up until now (v0.21.1) Freetube doesn't load anything when it is launched behind a proxy

Here is the description of the regression

A big red button in the top Subscription bar is "glowing" while the channel names are slowly appearing in the left column, but with broken image instead of the official logos

The following messages appear and disappear continuously in the bottom of the window

Erreur d'API locale (Cliquez pour copier): TypeError: Failed to fetch

When selecting a channel, the same redish growing button shows in the middle with still the same message regularly appearing in black rounded lines

All the menus are unusable

here is the message that are shown in the console from which freetube was launched:

[862096:0711/143109.106495:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862096:0711/143109.106612:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver
[862102:0711/143109.120090:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862102:0711/143109.120259:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver
[862108:0711/143109.132879:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862108:0711/143109.132996:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver
[862114:0711/143109.146824:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862114:0711/143109.146958:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver
[862120:0711/143109.160347:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862120:0711/143109.160484:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver
[862126:0711/143109.173772:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862126:0711/143109.173923:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver
[862132:0711/143109.187845:ERROR:validation_errors.cc(117)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[862132:0711/143109.187935:ERROR:interface_endpoint_client.cc(722)] Message 203124906 rejected by interface proxy_resolver.mojom.ProxyResolver

(several per seconds)

I have to revert to version 0.20.0 to be able to use it again

Expected Behavior

It should be able to load channel logos, video thumbnails and play videos as it was with v0.20.0

Issue Labels

API issue, content not loading, usability issue

FreeTube Version

0.21.1

Operating System Version

Ubuntu 24.04

Installation Method

.deb

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

0.20.0

Additional Information

the proxy doesn't require a user/password and the configuration is based on the following environment variables

no_proxy=localhost,127.0.0.0/8,.mydomain.xxx htttp_proxy=http://myproxy.xxx:8080/ https_proxy=http://myproxy.xxx:8080/

Nightly Build

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

4yman-0 commented 1 month ago

I think this is a weird bug in Chromium and WebView, not FreeTube.

It can be caused by random CSS.

adren commented 1 month ago

It seems a bit strange as I don't have chromium installed and FreeTube don't seem to have any dependency with webview nor chromium whatsoever. Moreover, when I downgrade to version 0.20.0, the preloading of channels is working again (but YT hardening of other clients makes it unusable to watch videos)

absidue commented 1 week ago

It seems a bit strange as I don't have chromium installed and FreeTube don't seem to have any dependency with webview nor chromium whatsoever. Moreover, when I downgrade to version 0.20.0, the preloading of channels is working again (but YT hardening of other clients makes it unusable to watch videos)

FreeTube uses Electron (that's why it is able to run on Windows, macOS and Linux) which is built on top of Chromium, although that is probably not the issue here.

Please enter your proxy configuration in FreeTube's proxy settings, instead of using environment variables for it. If you open the dev tools with Ctrl+Shift+I and then take a look at the console tab, it should have more information about the failed to fetch error, I supect it is going to say ERR_PROXY_CONNECTION_FAILED.

adren commented 1 week ago

indeed, it works when forcing the proxy through the settings