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

Curiositystream HTTP Error 422 #12751

Open
seyoum opened this issue Apr 15, 2017 · 1 comment
Open

Curiositystream HTTP Error 422 #12751

seyoum opened this issue Apr 15, 2017 · 1 comment

Comments

@seyoum
Copy link

@seyoum seyoum commented Apr 15, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.15. 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.04.15

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

Problem with fetching video from curiosity stream. This worked some hours ago... Now I get this message:

C:\Users\User\Desktop>youtube-dl https://app.curiositystream.com/video/1348 --username something@gmail.com --password PaSsWoRd --verbose --write-sub --all-subs
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://app.curiositystream.com/video/1348', '--username', 'PRIVATE', '--password', 'PRIVATE', '--verbose', '--write-sub', '--all-subs']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2017.04.15
[debug] Python version 3.6.1 - Windows-10-10.0.14393-SP0
[debug] exe versions: ffmpeg N-85091-g23ae3cc, ffprobe N-85091-g23ae3cc
[debug] Proxy map: {}
[curiositystream] Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 422: Unprocessable Entity (caused by <HTTPError 422: 'Unprocessable Entity'>); 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.
  File "c:\program files\python36\lib\site-packages\youtube_dl\extractor\common.py", line 498, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "c:\program files\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 2100, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "c:\program files\python36\lib\urllib\request.py", line 532, in open
    response = meth(req, response)
  File "c:\program files\python36\lib\urllib\request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\program files\python36\lib\urllib\request.py", line 570, in error
    return self._call_chain(*args)
  File "c:\program files\python36\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "c:\program files\python36\lib\urllib\request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
@robertely
Copy link

@robertely robertely commented Apr 25, 2017

I am fairly sure they are semi improperly using HTTP/422 as a rate limit reply. Specifically for authentication attempts.
If I try to re login from the android app while getting this, I get a popup TOO MANY LOGIN ATTEMPTS. PLEASE TRY AGAIN IN 30 MINUTES

EDIT:
Did a little poking and the 30 minute limit out looks about right.

I'm not going to assault the api to get the thresholds but I would keep attempts spaced out more than 5 minutes as a start.

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.