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

Unclear message when proxy is needed #6449

Closed
jesus2099 opened this issue Aug 3, 2015 · 2 comments
Closed

Unclear message when proxy is needed #6449

jesus2099 opened this issue Aug 3, 2015 · 2 comments

Comments

@jesus2099
Copy link

@jesus2099 jesus2099 commented Aug 3, 2015

From some places, I need to use the proxy command line parameter.
Sometimes I forget this and the error I get is very confusing, usually I am not able to understand why it fails before some hours of trying many silly things.

youtube-dl any-youtube-ID
[youtube] any-youtube-ID: Downloading webpage
Traceback (most recent call last):
File "main.py", line 19, in
File "youtube_dl__init__.pyo", line 410, in main
File "youtube_dl__init__.pyo", line 400, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1504, in download
File "youtube_dl\YoutubeDL.pyo", line 656, in extract_info
File "youtube_dl\extractor\common.pyo", line 279, in extract
File "youtube_dl\extractor\youtube.pyo", line 916, in _real_extract
File "youtube_dl\extractor\common.pyo", line 430, in _download_webpage
File "youtube_dl\extractor\common.pyo", line 337, in _download_webpage_handle
File "youtube_dl\extractor\common.pyo", line 324, in _request_webpage
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 58: ordinal not in range(128)

In fact I have to use youtube-dl --proxy my.proxy.fr:80 any-youtube-ID (for instance) and it works. But the error message had nothing to help me finding this solution. :)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 3, 2015

Post the full output of youtube-dl when run with --verbose and --dump-pages options.

@jesus2099
Copy link
Author

@jesus2099 jesus2099 commented Aug 3, 2015

OK, here it is. :)

prompt>youtube-dl --verbose --dump-pages C88xTb--Xw0
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--dump-pages', u'C88xTb--Xw0']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.07.28
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] C88xTb--Xw0: Downloading webpage
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 410, in main
  File "youtube_dl\__init__.pyo", line 400, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1504, in download
  File "youtube_dl\YoutubeDL.pyo", line 656, in extract_info
  File "youtube_dl\extractor\common.pyo", line 279, in extract
  File "youtube_dl\extractor\youtube.pyo", line 916, in _real_extract
  File "youtube_dl\extractor\common.pyo", line 430, in _download_webpage
  File "youtube_dl\extractor\common.pyo", line 337, in _download_webpage_handle
  File "youtube_dl\extractor\common.pyo", line 324, in _request_webpage
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 58: ordinal not in range(128)

Same with a latin page btw :

prompt>youtube-dl --verbose --dump-pages fkBoBHk7YYY
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--dump-pages', u'fkBoBHk7YYY']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.07.28
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] fkBoBHk7YYY: Downloading webpage
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 410, in main
  File "youtube_dl\__init__.pyo", line 400, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1504, in download
  File "youtube_dl\YoutubeDL.pyo", line 656, in extract_info
  File "youtube_dl\extractor\common.pyo", line 279, in extract
  File "youtube_dl\extractor\youtube.pyo", line 916, in _real_extract
  File "youtube_dl\extractor\common.pyo", line 430, in _download_webpage
  File "youtube_dl\extractor\common.pyo", line 337, in _download_webpage_handle
  File "youtube_dl\extractor\common.pyo", line 324, in _request_webpage
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 58: ordinal not in range(128)
@dstftw dstftw closed this in dd85e4d Dec 19, 2015
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.