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

Using socks5 with youtube returns an error #26959

Closed
triplesixman opened this issue Oct 21, 2020 · 0 comments
Closed

Using socks5 with youtube returns an error #26959

triplesixman opened this issue Oct 21, 2020 · 0 comments
Labels

Comments

@triplesixman
Copy link

@triplesixman triplesixman commented Oct 21, 2020

Checklist

  • [ *] I'm reporting a broken site support
  • [ *] I've verified that I'm running youtube-dl version 2020.09.20
  • [ *] 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

WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[youtube] YVkUvmDQ3HY: Downloading webpage
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 2019, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1798, in _real_extract
    video_webpage, urlh = self._download_webpage_handle(url, video_id)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 277, in _download_webpage_handle
    *args, **compat_kwargs(kwargs))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 665, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 632, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 2238, 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/lib/python2.7/dist-packages/youtube_dl/utils.py", line 2736, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1058, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1098, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1054, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 892, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 854, in send
    self.connect()
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/utils.py", line 2702, in connect
    self.sock.connect((self.host, self.port))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/socks.py", line 270, in connect
    self._make_proxy(socket.socket.connect, address)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/socks.py", line 266, in _make_proxy
    setup_funcs[self._proxy.type](address)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/socks.py", line 167, in _setup_socks4
    version, resp_code, dstport, dsthost = compat_struct_unpack('!BBHI', self.recvall(8))
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/socks.py", line 126, in recvall
    raise EOFError('{0} bytes missing'.format(cnt - len(data)))
EOFError: 8 bytes missing

I'm just trying to use one of my socks and socks5 proxies to download a video, and I get this error.

@dstftw dstftw closed this Oct 21, 2020
@dstftw dstftw added the incomplete label Oct 21, 2020
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.