Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: unable to download video data: HTTP Error 403: Forbidden #13391

Closed
star001007 opened this issue Jun 15, 2017 · 4 comments
Closed

ERROR: unable to download video data: HTTP Error 403: Forbidden #13391

star001007 opened this issue Jun 15, 2017 · 4 comments

Comments

@star001007
Copy link

@star001007 star001007 commented Jun 15, 2017

root@beta-api:~# youtube-dl https://www.youtube.com/watch?v=Bob9Hueb1uY -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=Bob9Hueb1uY', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.12
[debug] Python version 2.7.6 - Linux-3.13.0-116-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Bob9Hueb1uY: Downloading webpage
[youtube] Bob9Hueb1uY: Downloading video info webpage
[youtube] Bob9Hueb1uY: Extracting video information
[youtube] Bob9Hueb1uY: Downloading MPD manifest
[debug] Invoking downloader on u'https://r2---sn-i3beln76.googlevideo.com/videoplayback?ei=bXJCWcbED8S94gL88LeYAQ&requiressl=yes&ratebypass=yes&ipbits=0&ip=103.218.243.95&expire=1497548493&mime=video%2Fmp4&mm=31&source=youtube&key=yt6&itag=22&ms=au&mt=1497526513&mv=u&id=o-AFRMG33yATsC7rSivsKXYQy0c8DcNYzgL4y8WzN4VcNC&dur=601.930&mn=sn-i3beln76&lmt=1481784077045135&sparams=dur%2Cei%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&pl=24&signature=B01A392990607B5F6E0545B4BCAA38FF06A5A10D.BD0C5924A751EED01DD450C1A898F3BA6FDF0EC4'
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1826, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1768, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 360, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 61, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2129, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

hope someone can help me. it's okey until yesterday.

@star001007
Copy link
Author

@star001007 star001007 commented Jun 15, 2017

@yan12125 ,great thanks. my local machine works fine, but not for my webserver. the webserver locates in Hong Kong, maybe i need to change ip.

root@beta-api:~# ping r5---sn-i3beln76.googlevideo.com
PING r5.sn-i3beln76.googlevideo.com (173.194.59.75) 56(84) bytes of data.
64 bytes from 173.194.59.75: icmp_seq=1 ttl=56 time=238 ms
64 bytes from 173.194.59.75: icmp_seq=2 ttl=56 time=2.16 ms
64 bytes from 173.194.59.75: icmp_seq=3 ttl=56 time=95.4 ms
64 bytes from 173.194.59.75: icmp_seq=4 ttl=56 time=2.15 ms
64 bytes from 173.194.59.75: icmp_seq=5 ttl=56 time=91.2 ms
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 15, 2017

173.194.59.75 is a valid Google IP. I guess your server is blocked by YouTube, so I'm closing this here. If you have any new findings, (for example using the webserver as a proxy and YouTube works) feel free to leave comments here or to #13388.

@star001007
Copy link
Author

@star001007 star001007 commented Jun 16, 2017

@yan12125 ,okey, great thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.