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

SSL Error (ssl.SSLError object has no attribute 'message') #26646

Closed
6 tasks done
offtheitpath opened this issue Sep 21, 2020 · 0 comments
Closed
6 tasks done

SSL Error (ssl.SSLError object has no attribute 'message') #26646

offtheitpath opened this issue Sep 21, 2020 · 0 comments

Comments

@offtheitpath
Copy link

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.09.20
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

PS E:\YT> youtube-dl --prefer-ffmpeg -ciw -f bestvideo+bestaudio/best -r 2.0M --socket-timeout 10 --retries infinite --force-ipv4 --all-subs https://www.youtube.com/watch?v=xIiiGJNlnaI -o "E:\YT\%(title)s.%(ext)s" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--prefer-ffmpeg', '-ciw', '-f', 'bestvideo+bestaudio/best', '-r', '2.0M', '--socket-timeout', '10', '--retries', 'infinite', '--force-ipv4', '--all-subs', 'https://www.youtube.com/watch?v=xIiiGJNlnaI', '-o', 'E:\\YT\\%(title)s.%(ext)s', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg git-2020-05-13-b12b053, ffprobe git-2020-05-13-b12b053
[debug] Proxy map: {}
[youtube] xIiiGJNlnaI: Downloading webpage
[youtube] {18} signature length 107, html5 player 4b1ba5ea
[youtube] {137} signature length 111, html5 player 4b1ba5ea
[youtube] {248} signature length 111, html5 player 4b1ba5ea
[youtube] {399} signature length 111, html5 player 4b1ba5ea
[youtube] {136} signature length 107, html5 player 4b1ba5ea
[youtube] {247} signature length 111, html5 player 4b1ba5ea
[youtube] {398} signature length 111, html5 player 4b1ba5ea
[youtube] {135} signature length 111, html5 player 4b1ba5ea
[youtube] {244} signature length 107, html5 player 4b1ba5ea
[youtube] {397} signature length 107, html5 player 4b1ba5ea
[youtube] {134} signature length 111, html5 player 4b1ba5ea
[youtube] {243} signature length 107, html5 player 4b1ba5ea
[youtube] {396} signature length 111, html5 player 4b1ba5ea
[youtube] {133} signature length 111, html5 player 4b1ba5ea
[youtube] {242} signature length 111, html5 player 4b1ba5ea
[youtube] {395} signature length 111, html5 player 4b1ba5ea
[youtube] {160} signature length 107, html5 player 4b1ba5ea
[youtube] {278} signature length 111, html5 player 4b1ba5ea
[youtube] {394} signature length 111, html5 player 4b1ba5ea
[youtube] {140} signature length 111, html5 player 4b1ba5ea
[youtube] {249} signature length 111, html5 player 4b1ba5ea
[youtube] {250} signature length 111, html5 player 4b1ba5ea
[youtube] {251} signature length 107, html5 player 4b1ba5ea
[info] Video subtitle ja.vtt is already present
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r2---sn-jvhja5g3-hoak.googlevideo.com/videoplayback?expire=1600691123&ei=U0doX9-qIpfW4wLmoKKYBA&ip=152.32.106.152&id=o-AKXhn4cJe1LkN-XjkYGaYon43OY8KudHIV5g51noNzg7&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=DC&mm=31%2C29&mn=sn-jvhja5g3-hoak%2Csn-i3b7kns6&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=847500&vprv=1&mime=video%2Fmp4&gir=yes&clen=4312306983&dur=8763.053&lmt=1600641336312201&mt=1600669478&fvip=2&keepalive=yes&c=WEB&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgTZQb9V0CvLacY8kLnhodCOd7wksf4oF14AMNb4wOamACIQDcchoZVas0ZFA2E7aHn_uZqVUVA0T3LJp0KmnQl3O63g%3D%3D&sig=AOq0QJ8wRgIhAI5XkGCTiU1pNsHz9p0_hNtQ4IlP2TBrvWV1qe3wtycpAiEA49pCYvGyjVr8zbRpHmPHLzqqHqrpKbkZUw9xIZG9L1k=&ratebypass=yes'
[download] Resuming download at byte 62503188
[download] Destination: E:\YT\ARASHI - ARAFES NATIONAL STADIUM 2012【期間限定公開/Limited Time Release】.f137.mp4
[download]   5.1% of 4.02GiB at  1.67MiB/s ETA 39:02     ERROR: 'ssl.SSLError' object has no attribute 'message'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\downloader\http.py", line 235, in download
  File "C:\Python\Python34\lib\http\client.py", line 537, in read
  File "C:\Python\Python34\lib\http\client.py", line 576, in readinto
  File "C:\Python\Python34\lib\socket.py", line 378, in readinto
  File "C:\Python\Python34\lib\ssl.py", line 748, in recv_into
  File "C:\Python\Python34\lib\ssl.py", line 620, in read
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1748)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 808, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 863, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 1644, in process_video_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 1920, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 1865, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\downloader\common.py", line 366, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\downloader\http.py", line 349, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\downloader\http.py", line 243, in download
AttributeError: 'ssl.SSLError' object has no attribute 'message'

Description

I'm always encountering a ssl.SSLError object has no attribute 'message' error while using youtube-dl, regardless of the Youtube URL I enter. Running the command again allows for the download to resume where it left off, but having to rerun it every so often is quite a hassle as there seems to be no way of telling when the download will suddenly stop due to the error.

For additional context, I am running youtube-dl.exe on Windows 10, no VPN, and running Windows Defender. I have also tried running it without the --prefer-ffmpeg and --force-ipv4 options and I'm still getting the same error.

@dstftw dstftw closed this as completed in c5764b3 Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant