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

The --proxy instruction uses methods to describe errors #13510

Closed
821938089 opened this issue Jun 27, 2017 · 1 comment
Closed

The --proxy instruction uses methods to describe errors #13510

821938089 opened this issue Jun 27, 2017 · 1 comment
Labels

Comments

@821938089
Copy link

@821938089 821938089 commented Jun 27, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.06.25. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.06.25

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl --verbose https://www.youtube.com/watch?v=-qFW9lAA7nM --proxy "socks5://127.0.0.1:1080/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?v=-qFW9lAA7nM', u'--proxy', u'socks5://127.0.0.1:1080/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.25
[debug] Python version 2.7.13 - Linux-4.10.0-24-generic-i686-with-Ubuntu-17.04-zesty
[debug] exe versions: ffmpeg 3.2.4-1build2, ffprobe 3.2.4-1build2, rtmpdump 2.4
[debug] Proxy map: {u'http': u'socks5://127.0.0.1:1080/', u'https': u'socks5://127.0.0.1:1080/'}
[youtube] -qFW9lAA7nM: Downloading webpage
ERROR: Unable to download webpage: IncompleteRead(7276 bytes read, 916 more expected) (caused by IncompleteRead(7276 bytes read, 916 more expected)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 502, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2137, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 974, in http_response
    content = resp.read()
  File "/usr/lib/python2.7/socket.py", line 355, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib/python2.7/httplib.py", line 573, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.7/httplib.py", line 633, in _read_chunked
    value.append(self._safe_read(amt))
  File "/usr/lib/python2.7/httplib.py", line 690, in _safe_read
    raise IncompleteRead(''.join(s), amt)

And

$ youtube-dl --verbose https://www.youtube.com/watch?v=-qFW9lAA7nM --proxy "socks5://127.0.0.1:1080"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?v=-qFW9lAA7nM', u'--proxy', u'socks5://127.0.0.1:1080']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.25
[debug] Python version 2.7.13 - Linux-4.10.0-24-generic-i686-with-Ubuntu-17.04-zesty
[debug] exe versions: ffmpeg 3.2.4-1build2, ffprobe 3.2.4-1build2, rtmpdump 2.4
[debug] Proxy map: {u'http': u'socks5://127.0.0.1:1080', u'https': u'socks5://127.0.0.1:1080'}
[youtube] -qFW9lAA7nM: Downloading webpage
[youtube] -qFW9lAA7nM: Downloading video info webpage
WARNING: unable to download video info webpage: IncompleteRead(201 bytes read)
WARNING: unable to download video info webpage: IncompleteRead(1224 bytes read, 13 more expected)
[youtube] -qFW9lAA7nM: Extracting video information
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r3---sn-i3b7kn7d.googlevideo.com/videoplayback?ei=HOhSWdalJYGq4gL3uL2QDw&pl=24&gir=yes&clen=436418506&expire=1498627196&mt=1498605181&mm=31&mn=sn-i3b7kn7d&dur=1258.190&id=o-AHYcauT17_4pCHDpEogjrZvWXSE1b271B221k5A5218S&source=youtube&mv=u&ms=au&key=yt6&ip=47.52.101.243&lmt=1498530844812198&itag=137&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&requiressl=yes&keepalive=yes&signature=CFB1B198E0EFB61F4BA0FB2FA74E1E698DEF918F.4C13BEEC4345BEE74A686CDE376F16D1DADCACF0&mime=video%2Fmp4&ratebypass=yes'
[download] Destination: SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f137.mp4
[download] 100% of 416.20MiB in 05:46
[debug] Invoking downloader on u'https://r3---sn-i3b7kn7d.googlevideo.com/videoplayback?ei=HOhSWdalJYGq4gL3uL2QDw&pl=24&gir=yes&clen=16550113&expire=1498627196&mt=1498605181&mm=31&mn=sn-i3b7kn7d&dur=1258.201&id=o-AHYcauT17_4pCHDpEogjrZvWXSE1b271B221k5A5218S&source=youtube&mv=u&ms=au&key=yt6&ip=47.52.101.243&lmt=1498391247442799&itag=251&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&requiressl=yes&keepalive=yes&signature=9E6933EF8FAE98822D4102414961FF631C2697BA.966118D4AA41AB33D434A53AB4F010F8653487D7&mime=audio%2Fwebm&ratebypass=yes'
[download] Destination: SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f251.webm
[download] 100% of 15.78MiB in 00:15
[ffmpeg] Merging formats into "SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'file:SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f137.mp4' -i 'file:SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f251.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.temp.mkv'
Deleting original file SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f137.mp4 (pass -k to keep)
Deleting original file SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f251.webm (pass -k to keep)


Description of your issue, suggested solution and other information

I use --proxy "socks5://127.0.0.1:1080/" ,it will report a error ,Details can see the above debug.
This question toss my half a day.
Ultimately, I found that the original is "/" the problem.
$ youtube-dl --verbose https://www.youtube.com/watch?v=-qFW9lAA7nM --proxy "socks5://127.0.0.1:1080"
$ youtube-dl --verbose https://www.youtube.com/watch?v=-qFW9lAA7nM --proxy "socks5://127.0.0.1:1080/"

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 28, 2017

> py -3.6 .\youtube_dl\__main__.py --proxy 'socks4://127.0.0.1:9050/' -- '-qFW9lAA7nM'
[youtube] -qFW9lAA7nM: Downloading webpage
[youtube] -qFW9lAA7nM: Downloading video info webpage
[youtube] -qFW9lAA7nM: Extracting video information
[youtube] -qFW9lAA7nM: Downloading MPD manifest
WARNING: [youtube] -qFW9lAA7nM: Skipping DASH manifest: ExtractorError("Failed to download MPD manifest: <urlopen error [Errno 91] request rejected or failed> (caused by URLError(Socks4Error(91, 'request rejected or failed'),))",)
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: SciCraft 31 - Quarry Progress Monitoring--qFW9lAA7nM.f137.mp4
[download]   0.2% of 416.20MiB at 648.38KiB/s ETA 10:55
ERROR: Interrupted by user
@dstftw dstftw closed this Jun 28, 2017
@dstftw dstftw added the invalid label Jun 28, 2017
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.