redlib icon indicating copy to clipboard operation
redlib copied to clipboard

🐛 Bug Report: Intermittent 403 Forbidden on HLSPlaylist.m3u8 request

Open pimlie opened this issue 8 months ago • 4 comments

Describe the bug

For some time now I'm getting random/intermittent 403 Forbidden's on only the HLSPlaylist.m3u8 request, this causes ofc media to not play.

The media for which the 403 occurs also seem to be a bit random, it's not that all media returns a 403 just say like half of them. It doesn't seem to be a caching issue, yesterday I upgraded my docker container to the latest release which should've cleared all caches but after upgrading I still got a 403 on that same HLSPlaylist.m3u8 request.

But this morning the request for that same HLSPlaylist.m3u8 does work and I can watch the video.

Steps to reproduce the bug

Unsure

What's the expected behavior?

That video's are always playable

Additional context / screenshot

  • In the past I've noticed that it seemed you can get 403's when the time in your docker container is out of sync. That didn't seem the case this time, except for TZ differences the time between client/server/docker container was within 1s of each other

  • I didn't saw an issue related this yet, so decided to create one at least for documentation purposes / even if the problem might just be that my ip is being blocked? It's somewhat weird as I'd expect that my ip would be blocked for any request and not just for HLSPlaylist requests...

  • [x] I checked that the instance that this was reported on is running the latest git commit, or I can reproduce it locally on the latest git commit

pimlie avatar May 08 '25 09:05 pimlie

When you say half of them, do you mean at any given time you can reproduce some videos failing (if you were to scroll through a bunch of them and try playing them), or that half the times that you've tried, a video failed to play?

sigaloid avatar May 08 '25 11:05 sigaloid

The former, so once I'm getting a 403 then like half of the media wont play anymore. So normally all video's work fine.

But please don't interpret 'half' as an actual measurement, just used that wording to indicate that I some seems to play still and some won't. No idea about the actual ratio, will report back with an actual measurement when it happens again :)

pimlie avatar May 08 '25 11:05 pimlie

Had this happening again and the 403 seems to be constraint to only some video's. Like load a page with 10 posts and the video of the 4th post will give a 403 but the 5th will just play. And then on the next page everything works but on the third page maybe 1 video again.

Just looked at the code and it seems that nothing about this could be related to redlib? 🙃 Cause it seems redlib just forwards the a string so if an ?a= token(?) returns a 403 then its probably a reddit issue? If so feel free to close this issue :)

pimlie avatar May 18 '25 10:05 pimlie

I have this happen intermittently as well. If I go to another instance that isn't mine, the video will play.

Happened to me now with this video https://reddit.com/r/nextfuckinglevel/comments/1oqjc0j/creativity_is_just_intelligence_having_fun/

Reloading a number of times doesn't seem to do anything. However while looking to see if anyone else posted this issue and some time elapsing the video now plays on my end...

jnobbe avatar Nov 07 '25 07:11 jnobbe