warren-bank / HLS-Proxy

Node.js server to proxy HLS video streams
http://webcast-reloaded.surge.sh/proxy.html
GNU General Public License v2.0
238 stars 68 forks source link

403 forbidden when requesting video with same YT ID multiple times #31

Open yomomano opened 1 year ago

yomomano commented 1 year ago

Hi, when I request a video multiple times it happens 'often', not always, the response is a 403 forbidden.

I am not sure where the cause or the solution lies. Can someone please shine some light and if possible locate where to patch this mf?

Opening proxy URL pure in browser seems to be ok always. Is there some cleanup to be done in HLS-proxy? Example video ID = 9xwazD5SyVg

Thank so much!

yomomano commented 1 year ago

image

In this log you find that the video (first line) triggers event loadstartas in video.on('loadstart', function (event) {..}` . But then these 403 arrive . Hope this helps. This occurs only with the second request with same video ID. First request is fine

.io.3001 is where the HLS-proxy is running

warren-bank commented 1 year ago

if your host is running vanilla HLS-proxy, then your querystring is invalid.. it requires a base64 pathname.

if your instance of HLS-proxy has been modified to use this querystring, then:

  1. I can't diagnose the problem because you're running custom code
  2. since HLS-proxy is GPLv2, you need to make your modified source code publicly available