ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.34k stars 9.95k forks source link

[ADN] HTTP Error 522: Origin Connection Time-out #21982

Closed ghost closed 5 years ago

ghost commented 5 years ago

Checklist

Verbose log

python __main__.py -u "PRIVATE" -p "PRIVATE" --skip-download --write-sub --sub-lang "fr" https://animedigitalnetwork.fr/video/dumbbell-combien-tu-peux-soulever/10115-episode-1-ca-te-dirait-d-essayer-la-muscu -v

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '--skip-download', '--write-sub', '--sub-lang', 'fr', 'https://animedigitalnetwork.fr/video/dumbbell-combien-tu-peux-soulever/10115-episode-1-ca-te-dirait-d-essayer-la-muscu', '-v']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.08.02
[debug] Python version 3.7.3 (CPython) - Windows-10-10.0.18362-SP0
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3
[debug] Proxy map: {}
[ADN] 10115: Downloading webpage
[ADN] 10115: Downloading player config JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 522: Origin Connection Time-out (caused by <HTTPError 522: 'Origin Connection Time-out'>); 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:\Users\Azusagawa\Desktop\youtube-dl-master\youtube_dl\extractor\common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "C:\Users\Azusagawa\Desktop\youtube-dl-master\youtube_dl\YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "c:\python37\lib\urllib\request.py", line 531, in open
    response = meth(req, response)
  File "c:\python37\lib\urllib\request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\python37\lib\urllib\request.py", line 569, in error
    return self._call_chain(*args)
  File "c:\python37\lib\urllib\request.py", line 503, in _call_chain
    result = func(*args)
  File "c:\python37\lib\urllib\request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

Since a few minutes, I can't download anything on https://animedigitalnetwork.fr/, I'm using the latest key f6d3c0f7b7c8b748, the latest version of youtube-dl (2018.08.02) from today and I can access the page without youtube-dl, I'm not IP blocked or anything like this.

ghost commented 5 years ago

@remitamine I'm sure you have an idea about how I can bypass this problem since you are always fixing the problems on ADN.

remitamine commented 5 years ago

most likely a temporary error from the website:

youtube-dl https://animedigitalnetwork.fr/video/dumbbell-combien-tu-peux-soulever/10115-episode-1-ca-te-dirait-d-essayer-la-muscu
[ADN] 10115: Downloading webpage
[ADN] 10115: Downloading player config JSON metadata
[ADN] 10115: Downloading links JSON metadata
[ADN] 10115: Downloading vostf mobile JSON metadata
[ADN] 10115: Downloading m3u8 information
[ADN] 10115: Downloading vostf sd JSON metadata
[ADN] 10115: Downloading m3u8 information
[download] Destination: Dumbbell  - Combien tu peux soulever  - Épisode 1-10115.mp4
ffmpeg version n4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[hls,applehttp @ 0x56131a4c30c0] Opening 'https://free8.animedigitalnetwork.fr/1564791626-0-ba0c9cc7ac919703bfca2cc18089ec88/video0_free_480p/sequence_0.ts' for reading
[hls,applehttp @ 0x56131a4c30c0] Opening 'https://free8.animedigitalnetwork.fr/1564791626-0-ba0c9cc7ac919703bfca2cc18089ec88/video0_free_480p/sequence_1.ts' for reading
Input #0, hls,applehttp, from 'https://free8.animedigitalnetwork.fr/1564791626-0-ba0c9cc7ac919703bfca2cc18089ec88/video0_free_480p/playlist.m3u8':
  Duration: 00:23:39.96, start: 0.050422, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 848x480 [SAR 160:159 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:Dumbbell  - Combien tu peux soulever  - Épisode 1-10115.mp4.part':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 848x480 [SAR 160:159 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   84 fps=0.0 q=-1.0 size=     256kB time=00:00:03.52 bitrate= 595.9kbits
ghost commented 5 years ago

I'm still having it, a friend have just get it too 5min ago. Don't understand :/

EDIT: It works after a few tries but it's really long, I had a 522 or 403 error.

remitamine commented 5 years ago

well, it's not possible to fix the problem if it's not reproducible by a developer.

ghost commented 5 years ago

Yeah, I understand but that sucks for me, anyway, thanks for answering. Could you try to download the subtitles too ? I wasn't trying to download the video.

remitamine commented 5 years ago
python __main__.py --all-subs --skip-download https://animedigitalnetwork.fr/video/dumbbell-combien-tu-peux-soulever/10115-episode-1-ca-te-dirait-d-essayer-la-muscu
[ADN] 10115: Downloading webpage
[ADN] 10115: Downloading player config JSON metadata
[ADN] 10115: Downloading links JSON metadata
[ADN] 10115: Downloading vostf mobile JSON metadata
[ADN] 10115: Downloading m3u8 information
[ADN] 10115: Downloading vostf sd JSON metadata
[ADN] 10115: Downloading m3u8 information
[ADN] 10115: Downloading subtitles location
[ADN] 10115: Downloading subtitles data
[info] Writing video subtitles to: Dumbbell  - Combien tu peux soulever  - Épisode 1-10115.fr.ssa
ghost commented 5 years ago

Seems that I have no luck :(