iptv-m3u-restream icon indicating copy to clipboard operation
iptv-m3u-restream copied to clipboard

Bad Gateway when streaming

Open glover279 opened this issue 5 years ago • 3 comments

3> [request] http://jarvishosting.ddns.net:826/xxxxx/xxxxxx/36593: Code 401 with headers { server: 'nginx', date: 'Sun, 05 Jan 2020 11:17:50 GMT', 'content-type': 'text/html; charset=UTF-8', connection: 'close', 'access-control-allow-origin': '*' } [master] worker 17600 died

I get a 502 Bad Gateway Error on the nginx proxy

The /channels does return a m3u just fine

Any idea what this could be? Thank you!

glover279 avatar Jan 05 '20 11:01 glover279

The streaming server replies with code 401, meaning you're not allowed to access the stream. Maybe you come from the wrong IP, or the server requires authentication?

duncanthrax avatar Jan 05 '20 14:01 duncanthrax

It seems to be that I need to change the user-agent header. Would it be possible for you to advise me?

Im trying something like this: const options = { url: url, headers: { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0' } };

glover279 avatar Jan 07 '20 12:01 glover279

Same problem

h0rcrux-9 avatar Jan 12 '21 21:01 h0rcrux-9