TeamPiped / Piped

An alternative privacy-friendly YouTube frontend which is efficient by design.
https://piped.video
GNU Affero General Public License v3.0
8.34k stars 685 forks source link

Videos don't load #1828

Closed DogCatPuppyLover closed 1 year ago

DogCatPuppyLover commented 1 year ago

Official Instance

Describe the bug

Occasionally, all Piped instances will appear to go down, then start working again for a few days, then go down again. It's almost as if I'm getting rate-limited, but it happens on most instances simultaneously (some instances stop working before others, but they eventually all go down.) I don't know if this is a problem on my end (maybe an extension?), or with Piped. I've been on the fence about making an issue for a while (this has been happening for months), because I thought it might be a temporary server issue, but it's probably worthwhile to report it.

To Reproduce

  1. Open this URL
  2. The video may not load (whether or not it loads is unpredictable)

Expected behavior

The video and website should load.

Logs/Errors

XHRGEThttps://pipedapi.moomoo.me/streams/le5uGqHKll8 CORS Missing Allow Origin

XHRGEThttps://pipedapi.moomoo.me/sponsors/le5uGqHKll8?category=["sponsor","interaction","selfpromo","music_offtopic"] CORS Missing Allow Origin

XHRGEThttps://pipedapi.moomoo.me/comments/le5uGqHKll8 CORS Missing Allow Origin

EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui.js:952:241 McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui.js:957:162 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedapi.moomoo.me/streams/le5uGqHKll8. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 503. Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedapi.moomoo.me/comments/le5uGqHKll8. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 503. Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedapi.moomoo.me/sponsors/le5uGqHKll8?category=%5B%22sponsor%22%2C%22interaction%22%2C%22selfpromo%22%2C%22music_offtopic%22%5D. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 503. Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. Failed to load ‘https://fonts.kavin.rocks/s/materialiconsround/v107/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf’. A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with ‘Error: no-response :: [{"url":"https://fonts.kavin.rocks/s/materialiconsround/v107/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf","error":{}}]’. workbox-8731d5a0.js:1:212 Failed to load ‘https://fonts.kavin.rocks/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf’. A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with ‘Error: no-response :: [{"url":"https://fonts.kavin.rocks/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf","error":{}}]’. workbox-8731d5a0.js:1:212 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://fonts.kavin.rocks/s/materialiconsround/v107/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf. (Reason: CORS request did not succeed). Status code: (null). downloadable font: download failed (font-family: "Material Icons Round" style:normal weight:400 stretch:100 src index:0): bad URI or cross-site access not allowed source: https://fonts.kavin.rocks/s/materialiconsround/v107/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://fonts.kavin.rocks/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf. (Reason: CORS request did not succeed). Status code: (null). downloadable font: download failed (font-family: "Roboto" style:normal weight:400 stretch:100 src index:0): bad URI or cross-site access not allowed source: https://fonts.kavin.rocks/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf

Browser, and OS with Version.

Firefox on Windows 11

Additional context

The bug is reproducable on the official instance sometimes, but not right now.

FireMasterK commented 1 year ago

That's an instance issue since it works great on the official one.

DogCatPuppyLover commented 1 year ago

Maybe, but piped.kavin.rocks currently doesn't work, and if I remember correctly, piped.video has had problems like this in the past

FireMasterK commented 1 year ago

piped.kavin.rocks and piped.video are the same. You're using the pipedapi.moomoo.me, instance, which is down currently, hence why its not listed in https://piped-instances.kavin.rocks/ due to it failing automatic healthchecks.

FireMasterK commented 1 year ago

cc @moom0o (You still appear to be using the version with varnish, which was replaced due to bugs, do a git pull, docker-compose down, ./configure-instance.sh, and finally docker-compose up -d)

DogCatPuppyLover commented 1 year ago

here's a screenshot from piped.kavin.rocks:

Screenshot 2022-11-27 at 16-51-26 Piped

here's a screenshot from piped.video (of the same video):

Screenshot 2022-11-27 at 16-52-21 Piped

the log files say that i'm using pipedapi.moomoo.me, for some reason, even though i'm on piped.kavin.rocks. i think this might be a problem with libredirect.

FireMasterK commented 1 year ago

In that case libredirect is redirecting users to instances that are down. Open a bug report with them.

DogCatPuppyLover commented 1 year ago

It looks like the problem was in my preferences--under "Instance", it was using a custom instance (i think moomoo.me). The problem went away when I set the instance to kavin.rocks. I suspect that when syncing settings, libredirect also wrongly syncs the "Instance" setting, which should be unique to each instance.