question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

403 Client Error: Forbidden - Need some help to get this to work.

See original GitHub issue

Hi, i’m trying to watch this stream with livestreamer but i get this error:

livestreamer "hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8" best
[cli][info] Found matching plugin stream for URL hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8
error: Unable to open URL: https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8 (403 Client Error: Forbidden)

Please note that you need a Swiss proxy to watch the stream on the website.

Here are some more info about the stream:

Webpage: http://www.rsi.ch/play/tv/live?channelId=LA1#?tvLiveId=livestream_La2&index=all HTTP-HDS - http://srgssruni13ch-lh.akamaihd.net/z/enc13uni_ch@191855/manifest.f4m HTTP-HLS - https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8 http://pastebin.com/8NDEAaQv

I got this url sniffing with Url Helper, i don’t know if it’s usefull:

http://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/segment243152152_1200_av-p.ts?sd=6&rebase=on&id=AgAfBzh02ZKlhX0+9VbUfxBsY3cSgMmFXIfeb0S%2ftitxFa99wc0J6fh5lW94O0pORTkoYycZWy4ILw%3d%3d&hdntl=exp=1458999293~acl=/i/enc13uni_ch@191855/*~data=hdntl~hmac=3d483bbd42cb3c2cb43cefda5ca712db62fee4f0f4800699d4c1b54a6f1f17a6

I tried with the protocols hds:// hls:// hlsvariant:// without luck. All the attempts have been made using Tunnelbear Vpn connected to Switzerland.

Thank you

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
0880commented, Mar 31, 2016

Switch to HLS.

livestreamer "hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8?hdnts=exp=1459417115~acl=/i/enc13uni_ch@191855/*~hmac=d3adfb4202873d0a19136f1fec90dd77c27a7804f285470ed5dc2a3fe8be4cd7" best
[cli][info] Found matching plugin stream for URL hlsvariant://https://srgssruni13ch-lh.akamaihd.net/i/enc13uni_ch@191855/master.m3u8?hdnts=exp=1459417115~acl=/i/enc13uni_ch@191855/*~hmac=d3adfb4202873d0a19136f1fec90dd77c27a7804f285470ed5dc2a3fe8be4cd7
[cli][info] Available streams: 48k (worst), 180p, 272p, 288p, 360p (best)
[cli][info] Opening stream: 360p (hls)
[cli][info] Starting player: "C:\Program Files (x86)\Video\MPC-HC\mpc-hc.exe"
Video: MPEG4 Video (H264) 640x360 25fps [V: h264 main L3.0, yuv420p, 640x360]
Audio: AAC 44100Hz stereo 127kbps [A: aac lc, 44100 Hz, stereo, 127 kb/s]
1reaction
tp0commented, Mar 27, 2016

(Yet another new comment instead of edit, incase you see these via email… 😄)

Try to sniff the URL again (hint: browser dev tools & network tab is enough) and get this instead:

http://srgssruni13ch-lh.akamaihd.net/z/enc13uni_ch@191855/manifest.f4m?hdnts=exp%3D1459094735~acl%3D%2Fz%2Fenc13uni_ch%40191855%2F*~hmac%3Db80eb816ae0dfb876af47d9bcbbf0602ce5738e623b5b60f728123b91c1f0dd7&g=RXVYYEUTNHXI&hdcore=3.7.0&plugin=aasp-3.7.0.39.44

The try this sort of format:

livestreamer "hds://URL_LIKE_ABOVE_HERE pvswf=URL_TO_FLASHPLAYER.swf" best

Find the flash player path from page source or via dev tools. I can’t test this anyway as I only have Tunnelbear browser addon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a 403 Forbidden Error on Your WordPress Site
The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your...
Read more >
403 Forbidden error: What it is and how to fix it - Allconnect.com
A 403 error is an HTTP status code that means “access denied.” If you ever had a treehouse as a kid, you may...
Read more >
How to Fix the 403 Forbidden Error (2 Methods That Work)
Method 2: Fixing the 404 Forbidden error on your own site · Step 1: Scan for faulty plugins · Step 2: Ensure that...
Read more >
What Is a 403 Forbidden Error (and How Can I Fix It)?
A 403 Forbidden Error occurs when you do not have permission to access a web page or something else on a web server....
Read more >
HTTP Error 403 Forbidden: What It Means and How to Fix It
If you encounter this it usually means that you have already authenticated yourself with the server, i.e. you've logged in, but the resource...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found