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: urlopen error Tunnel connection failed: 407 Proxy Authentication Required #22842

Closed
ncmttn opened this issue Oct 25, 2019 · 1 comment
Closed
Labels

Comments

@ncmttn
Copy link

@ncmttn ncmttn commented Oct 25, 2019

Checklist

  • I'm reporting a broken site support

  • I've verified that I'm running youtube-dl version 2019.10.22

  • I've checked that all provided URLs are alive and playable in a browser

  • I've checked that all URLs and arguments with special characters are properly quoted or escaped

  • I've searched the bugtracker for similar issues including closed ones

Verbose log

root@localhost ~ # youtube-dl -v --proxy '45.136.106.113:808' --username 'test' --password 'test' https://www.youtube.com/watch?v=y2tEPmwWEiI
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--proxy', u'45.136.106.113:808', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'https://www.youtube.com/watch?v=y2tEPmwWEiI']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.22
[debug] Python version 2.7.12 (CPython) - Linux-4.15.0-52-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 3.4.4-1, ffprobe 3.4.4-1, rtmpdump 2.4
[debug] Proxy map: {u'http': u'45.136.106.113:808', u'https': u'45.136.106.113:808'}
[youtube] Downloading login page
WARNING: unable to fetch login page: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>
[youtube] y2tEPmwWEiI: Downloading webpage
ERROR: Unable to download webpage: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required> (caused by URLError(error('Tunnel connection failed: 407 Proxy Authentication Required',),))
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 2724, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)

Description

When I connect with curl I have no problem with the address but I get this error with youtube-dl. When I try free proxy, I download a few problems without any problem, I get the same error in other proxies. I tried a lot of ways but I couldn't find a solution.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Oct 25, 2019

the wrong syntax, as the proxy requires authentication the option used should be --proxy user:pass@45.136.106.113:808(replace user and pass with correct proxy credentials).

@remitamine remitamine closed this Oct 25, 2019
@remitamine remitamine added the invalid label Oct 25, 2019
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.