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

Viki with an account. Getting a 403 : Forbidden (caused by HTTPError()) when downloading on Windows 10. #24754

Open
AlecHex opened this issue Apr 13, 2020 · 9 comments

Comments

@AlecHex
Copy link

@AlecHex AlecHex commented Apr 13, 2020

Checklist

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

Case 1: Logged in but no account details input: Limited to only 480p 

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', 'https://www.viki.com/videos/1161765v-forest-episode-1', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.03.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg git-2019-12-08-9f7b2b3, ffprobe git-2019-12-08-9f7b2b3
[debug] Proxy map: {}
[viki] 1161765v: Downloading video JSON
[viki] 1161765v: Downloading video streams JSON
[info] Available formats for 1161765v:
format code  extension  resolution note
mpd-http     mpd        unknown
240p-https   mp4        240p
360p-https   mp4        360p
480p-https   mp4        480p       (best)

Case 2 : Logged in and account details added: HTTP Error

C:\Youtube-dl>youtube-dl --username USERNAME --password PASSWORD -F https://www.viki.com/videos/1161765v-forest-episode-1 -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--username', 'PRIVATE', '--password', 'PRIVATE', '-F', 'https://www.viki.com/videos/1161765v-forest-episode-1', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.03.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg git-2019-12-08-9f7b2b3, ffprobe git-2019-12-08-9f7b2b3
[debug] Proxy map: {}
[viki] Logging in
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (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.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwbwqymm\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwbwqymm\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

Description

Hopefully I have created this issue properly. So basically when streaming through the browser I am getting 1080p HD quality for this video, but when going to youtube-dl to download them, I am getting the issues given above. I have posted two logs with two different cases. I have run the --cookies command instead of the username and password, and that doesn't seem to work also.

If an account is needed I can give the account to the dev to reproduce and check the problem for a fix. I am on Windows 10 if that is relevant anyhow. If there are anymore details required, please let me know and I'll provide them too.
Thank you.

@tanymb1688
Copy link

@tanymb1688 tanymb1688 commented Apr 13, 2020

I can confirm this issue exist, and is definitely a very recent one, this issue did not exist on 12th Apr local time.

@hendrawanwijaya
Copy link

@hendrawanwijaya hendrawanwijaya commented Apr 13, 2020

Try increase the --socket-timeout, in my case i set it to 10 seconds and works again.

@charlietango1
Copy link

@charlietango1 charlietango1 commented Apr 14, 2020

I have the exact same issue on Mac OS. Since this morning, trying to download Viki Pass HD videos results in a 403 forbidden error. I am a Viki Pass subscriber with a valid account. Downloading standard definition videos without a login on Viki still works, but the HD video downloads for Viki Pass subscribers are no longer working.

The suggested fix of increasing the --socket-timeout did NOT work for me.

@NJARAM
Copy link

@NJARAM NJARAM commented Apr 14, 2020

same problem here as at 15th april.Any solution?

@maferv
Copy link

@maferv maferv commented Apr 14, 2020

I'm getting the feeling that this is not a problem of youtube-dl, but a new limit implemented by youtube/google themselves

@guilhermelucasfreitas
Copy link

@guilhermelucasfreitas guilhermelucasfreitas commented Apr 14, 2020

Try increase the --socket-timeout, in my case i set it to 10 seconds and works again.

Yess!!! 30seconds for me

@dryshirt
Copy link

@dryshirt dryshirt commented Apr 14, 2020

Trying to download using the cookies.txt workaround gives a 401 error instead of a 403; maybe this will be helpful in determining the cause of the error. --socket-timeout did not work with the cookies workaround or authentication through the arguments.

I used cookies.txt for Chrome and exported the cookies from a tab playing an episode.

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', 'https://www.viki.com/videos/1118521v', '--cookies', 'cookies.txt', '--verbose', '--socket-timeout', '30']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.03.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[viki] 1118521v: Downloading video JSON
[viki] 1118521v: Downloading video streams JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (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.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwbwqymm\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwbwqymm\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
@AlecHex
Copy link
Author

@AlecHex AlecHex commented Apr 15, 2020

Try increase the --socket-timeout, in my case i set it to 10 seconds and works again.

Still doesn't work, can you post the command you input?

@AlecHex
Copy link
Author

@AlecHex AlecHex commented Apr 15, 2020

Try increase the --socket-timeout, in my case i set it to 10 seconds and works again.

Yess!!! 30seconds for me

Doesn't work for me. Can you post the command?

@ytdl-org ytdl-org deleted a comment from keksimusmaximus Apr 15, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.