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.

`--proxy` not working properly .

See original GitHub issue

Checklist

  • I’m reporting a broken site support
  • I’ve verified that I’m running youtube-dl version 2021.06.06
  • 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

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '-v', '--proxy', 'socks4://149.56.1.48:8181/', 'https://www.cbc.ca/player/play/1930912835522']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.8.10 (CPython) - Linux-5.11.0-25-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Proxy map: {'http': 'socks4://149.56.1.48:8181/', 'https': 'socks4://149.56.1.48:8181/'}
[ThePlatform] 1930912835522: Downloading SMIL data
[ThePlatform] 1930912835522: Checking video URL
[ThePlatform] 1930912835522: Checking video URL
[ThePlatform] 1930912835522: Checking video URL
[ThePlatform] 1930912835522: Checking video URL
[ThePlatform] 1930912835522: Checking video URL
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 475, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2068, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 808, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 847, in __extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 891, in process_ie_result
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 808, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/theplatform.py", line 308, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/theplatform.py", line 54, in _extract_theplatform_smil
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1993, in _parse_smil_formats
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1472, in _is_valid_url
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
  File "/usr/lib/python3.8/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 2735, in https_open
  File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.8/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1007, in _send_output
    self.send(msg)
  File "/usr/lib/python3.8/http/client.py", line 947, in send
    self.connect()
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 2703, in connect
  File "/usr/local/bin/youtube-dl/youtube_dl/socks.py", line 270, in connect
  File "/usr/local/bin/youtube-dl/youtube_dl/socks.py", line 266, in _make_proxy
  File "/usr/local/bin/youtube-dl/youtube_dl/socks.py", line 167, in _setup_socks4
  File "/usr/local/bin/youtube-dl/youtube_dl/socks.py", line 126, in recvall
EOFError: 8 bytes missing

Description

I was trying to see all resolutions of a video from cbc.ca using --proxy, but it is showing the above message . But for another video from the same website (cbc.ca) and using the same proxy I was able to see resolutions list, still while trying to download it (by removing -F) it showed ffmpeg does not support SOCKS proxies. Downloading is likely to fail. Consider adding --hls-prefer-native to your command. ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers. After adding --hls-prefer-native it showed the above verbose output. Can anyone help me resolve it ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
other-halfcommented, Aug 15, 2021

Thank you.

1reaction
ghostcommented, Aug 14, 2021

Never works with ffmpeg because it doesn’t support socks proxy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix “There Is Something Wrong With the Proxy Server ...
Go to the Control Panel. · Click on Internet Options. · Click on LAN (Local Area Network) Settings. · Uncheck the box that...
Read more >
Fix For Unable to Connect to Proxy Server Error In Windows 10
Unable to Connect to Proxy Server in Windows 10 · 1. Disable Proxy Settings · 2. Reset Internet Options · 3. Clear Browser...
Read more >
How to fix "There is something wrong with the proxy server ...
Method 3: Checking your Proxy Settings · On your keyboard, press Windows Key+S. · Type “control panel” (no quotes), then hit Enter. ·...
Read more >
Common Proxy Problems (And How You Can Fix Them)
The easiest way to limit proxy issues is to work with a reliable, professional provider. It's a safe and simple way to maximize...
Read more >
FIX: Unable to Connect to proxy server in Windows 10/11
How can I fix Unable to connect to proxy server? · 1. Reset Internet options · 2. Disable proxy · 3. Use a...
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