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

HTTP 400 Bad Request error downloading Disney and ABC content behind login wall #17830

Closed
nlistgarten opened this issue Oct 7, 2018 · 1 comment
Closed
Labels

Comments

@nlistgarten
Copy link

@nlistgarten nlistgarten commented Oct 7, 2018

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 this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

  • [x] I've verified and I assure that I'm running youtube-dl 2018.10.05

Before submitting an issue make sure you have:

  • [x] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x] Searched the bugtracker for similar issues including closed ones
  • [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • [x] 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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

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

Command:

python3 /usr/local/Cellar/youtube-dl/2018.10.05/bin/youtube-dl --ap-mso TWC --ap-username [PRIVATE] --ap-password [PRIVATE] --verbose  https://abc.go.com/shows/general-hospital/episode-guide/2018-10/02-tuesday-october-2-2018

Verbose output:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ap-mso', 'TWC', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--verbose', 'https://abc.go.com/shows/general-hospital/episode-guide/2018-10/02-tuesday-october-2-2018']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.7.0 (CPython) - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.2, ffprobe 3.2.2
[debug] Proxy map: {}
[Go] 02-tuesday-october-2-2018: Downloading webpage
[Go] VDKA5340539: Downloading JSON metadata
[Go] VDKA5340539: Downloading Provider Redirect Page
ERROR: Unable to download webpage: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); 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/Cellar/youtube-dl/2018.10.05/bin/youtube-dl/youtube_dl/extractor/common.py", line 604, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/Cellar/youtube-dl/2018.10.05/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description of your issue, suggested solution and other information

Issue: Downloading content behind login wall on Disney and ABC yields HTTP 400 Bad Request error.
Youtube-dl version 2018.10.05 installed via homebrew on macOS 10.12.6. This has been tested on two separate computers (same specs). Youtube-dl is being run manually with Python 3.7.0 (up to date) also installed with homebrew due to different errors encountered running on Python 2.7.10. This HTTP error occurs every time, on multiple wired and wireless networks. Note, there have been issues similar to this in the past, but issue solutions were often either trying python 3 or updating youtube-dl, both of which I have done.

What does work: Downloading content NOT behind login wall from Disney and ABC does work. TWC login does work. Downloading from other sites without login works. Downloading from behind login with other sites DOES work. This issue is exclusive to Disney and ABC content that requires login.

Followup: Because this issue occurs for content behind a login wall, I would like to be directly contacted for login information if necessary (do not want to post on a public forum). Please let me know if I can provide any other information that might be of use.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Oct 8, 2018

Duplicate of #15366.

@remitamine remitamine closed this Oct 8, 2018
@remitamine remitamine added the duplicate label Oct 8, 2018
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.