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 JSON metadata: <urlopen error [Errno -2] Name or service not known> #13796

Closed
Meriipu opened this issue Jul 31, 2017 · 1 comment

Comments

@Meriipu
Copy link

@Meriipu Meriipu commented Jul 31, 2017

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

[debug] System config: []
[debug] User config: ['--buffer-size', '16K']
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.30.1-gentoo_no_offensive_sites
[debug] Python version 3.5.3 - Linux-4.12.4-gentoo-pix-x86_64-...
[debug] exe versions: ffmpeg N-86791-g9b93795890, ffprobe N-86791-g9b93795890, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

Very similar error to Issue #10659 (though differing in at least "video data" vs "JSON metadata")
Used to work but does not anymore via base URL.
I was able to through Firefox debugger by using the url to master.m3u8 under XHR in the Network-tab.
Video in question should be available for all IP addresses globally as far as I know (i.e not region-restricted)

youtube-dl --verbose https://tv.nrk.no/program/MDDP12000717/youtube-generasjonen
[debug] System config: []
[debug] User config: ['--buffer-size', '16K']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://tv.nrk.no/program/MDDP12000717/youtube-generasjonen']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.30.1-gentoo_no_offensive_sites
[debug] Python version 3.5.3 - Linux-4.12.4-gentoo-pix-x86_64-...
[debug] exe versions: ffmpeg N-86791-g9b93795890, ffprobe N-86791-g9b93795890, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 84.212.165.126 (NO) as X-Forwarded-For.
[NRKTV] MDDP12000717: Downloading mediaelement JSON
ERROR: Unable to download JSON metadata: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierror(-2, 'Name or service not known'),))
  File "/usr/lib64/python3.5/site-packages/youtube_dl/extractor/common.py", line 502, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib64/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 2166, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python3.5/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.5/urllib/request.py", line 484, in _open
    '_open', req)
  File "/usr/lib64/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.5/site-packages/youtube_dl/utils.py", line 930, in http_open
    req)
  File "/usr/lib64/python3.5/urllib/request.py", line 1256, in do_open
    raise URLError(err)
@dstftw dstftw closed this in 9118c9f Jul 31, 2017
@Meriipu
Copy link
Author

@Meriipu Meriipu commented Jul 31, 2017

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
1 participant
You can’t perform that action at this time.