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

Unable to login. Twitch said: Please complete the CAPTCHA correctly. #12564

Closed
flugasak opened this issue Mar 26, 2017 · 3 comments
Closed

Unable to login. Twitch said: Please complete the CAPTCHA correctly. #12564

flugasak opened this issue Mar 26, 2017 · 3 comments
Labels

Comments

@flugasak
Copy link

@flugasak flugasak commented Mar 26, 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.03.26. 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.03.26

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

Output

$ ./youtube-dl -f high -u flugasak -p hunter2 https://www.twitch.tv/videos/125404543 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-f', u'high', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'https://www.twitch.tv/videos/125404543', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.03.26
[debug] Python version 2.7.12 - Linux-4.4.0-66-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 2.8.11-0ubuntu0.16.04.1, avprobe 2.8.11-0ubuntu0.16.04.1, ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[twitch:vod] Downloading login page
[twitch:vod] Logging in as flugasak
ERROR: Unable to login. Twitch said: Please complete the CAPTCHA correctly.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/twitch.py", line 83, in login_step
headers=headers)
File "./youtube-dl/youtube_dl/extractor/common.py", line 651, in _download_json
encoding=encoding, data=data, headers=headers, query=query)
File "./youtube-dl/youtube_dl/extractor/common.py", line 619, in _download_webpage
res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
File "./youtube-dl/youtube_dl/extractor/common.py", line 526, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
File "./youtube-dl/youtube_dl/extractor/common.py", line 506, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
ExtractorError: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by HTTPError()); 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.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 427, in extract
self.initialize()
File "./youtube-dl/youtube_dl/extractor/common.py", line 385, in initialize
self._real_initialize()
File "./youtube-dl/youtube_dl/extractor/twitch.py", line 56, in _real_initialize
self._login()
File "./youtube-dl/youtube_dl/extractor/twitch.py", line 106, in _login
'password': password,
File "./youtube-dl/youtube_dl/extractor/twitch.py", line 88, in login_step
fail(response['message'])
File "./youtube-dl/youtube_dl/extractor/twitch.py", line 65, in fail
'Unable to login. Twitch said: %s' % message, expected=True)
ExtractorError: Unable to login. Twitch said: Please complete the CAPTCHA correctly.

---

### Description 

I was trying to download a twitch video from a channel I subscribe to, but it seems twitch has changed something with the captcha. It's happened before, and those times I've simply updated to the latest version of youtube-dl, which has fixed it. This time that wasn't enough, so apparently twitch is updating it more often now.

Either way, it seems youtube-dl can't get past the captcha at the moment.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 26, 2017

youtube-dl is not supposed to bypass captcha - it's your responsibility. Go to website and solve it, then export cookies and pass to youtube-dl with --cookies.

@dstftw dstftw closed this Mar 26, 2017
@dstftw dstftw added the invalid label Mar 26, 2017
@flugasak
Copy link
Author

@flugasak flugasak commented Mar 27, 2017

Then I suggest the error message for this be changed to reflect this. Perhaps with some instructions or, at least, tips on how to do that.

But at the very least remove this part:

Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by HTTPError()); please report this issue on https://yt-dl.org/bug

@Cryspart
Copy link

@Cryspart Cryspart commented Mar 31, 2017

Instead of logging with your personal account, is there a way of using your personal client-id and twitch api secret to download a subscriber only vod (if you are a sub) without the captcha ? (and without the need to use the cookie)

EDIT: After reading the twitch doc, I don't think it is possible to use your client-id instead of your username + password

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
3 participants
You can’t perform that action at this time.