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

[Packtpub] ERROR: The recaptcha solution is missing. #24352

Closed
shaileshaanand opened this issue Mar 15, 2020 · 1 comment
Closed

[Packtpub] ERROR: The recaptcha solution is missing. #24352

shaileshaanand opened this issue Mar 15, 2020 · 1 comment

Comments

@shaileshaanand
Copy link

@shaileshaanand shaileshaanand commented Mar 15, 2020

Checklist

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

youtube-dl https://subscription.packtpub.com/video/web-development/9781789539509 --username hidden --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://subscription.packtpub.com/video/web-development/9781789539509', '--username', 'PRIVATE', '--verbose']
Type account password and press [Return]: 
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.03.08
[debug] Git HEAD: 39eb11694
[debug] Python version 3.8.1 (CPython) - Linux-5.5.7-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2
[debug] Proxy map: {}
[PacktPubCourse] 9781789539509: Downloading JSON metadata
[PacktPubCourse] 9781789539509: Downloading JSON metadata
[download] Downloading playlist: Modern JavaScript From The Beginning [Video]
[PacktPubCourse] playlist Modern JavaScript From The Beginning [Video]: Collected 119 video ids (downloading 119 of them)
[download] Downloading video 1 of 119
[PacktPub] Downloading Authorization Token
ERROR: The recaptcha solution is missing.
Traceback (most recent call last):
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/shailesh/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib64/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib64/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/packtpub.py", line 56, in _real_initialize
    self._TOKEN = self._download_json(
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 888, in _download_json
    res = self._download_json_handle(
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 867, in _download_json_handle
    res = self._download_webpage_handle(
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
    raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/shailesh/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib64/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib64/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/packtpub.py", line 56, in _real_initialize
    self._TOKEN = self._download_json(
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 888, in _download_json
    res = self._download_json_handle(
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 867, in _download_json_handle
    res = self._download_webpage_handle(
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
    raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: 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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/shailesh/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
    self.initialize()
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/common.py", line 433, in initialize
    self._real_initialize()
  File "/home/shailesh/projects/youtube-dl/youtube_dl/extractor/packtpub.py", line 65, in _real_initialize
    raise ExtractorError(message, expected=True)
youtube_dl.utils.ExtractorError: The recaptcha solution is missing.

Description

Packtpub has added Recaptcha to their login page which seems to break the login, passing cookie file does not help either.
I am ready to provide login credentials for testing.
URL used for testing: https://subscription.packtpub.com/video/web-development/9781789539509

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 15, 2020

You must provide reproducible environment.

@dstftw dstftw closed this Mar 15, 2020
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.