iptv-m3u-restream
iptv-m3u-restream copied to clipboard
Bad Gateway when streaming
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': '*'
}
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!
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?
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' } };
Same problem