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

Facebook SSL unexpected EOF #24433

Closed
alan1world opened this issue Mar 22, 2020 · 5 comments
Closed

Facebook SSL unexpected EOF #24433

alan1world opened this issue Mar 22, 2020 · 5 comments

Comments

@alan1world
Copy link

@alan1world alan1world commented Mar 22, 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

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.facebook.com/chrismannmusic/videos/140411054037302/?t=36']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.03.08
[debug] Python version 3.8.2 (CPython) - Linux-5.5.10-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 140411054037302: Downloading webpage
ERROR: Unable to download webpage: [SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:2607) (caused by SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:2607)')); 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 "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2616, in http_response
    content = resp.read()
  File "/usr/lib/python3.8/http/client.py", line 464, in read
    s = self.fp.read()
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)

Description

Extractor used to work until recently (worked in Jan / Feb) and now returns error.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 22, 2020

SSL issue. Nothing to do with youtube-dl.

@dstftw dstftw closed this Mar 22, 2020
@aulemahal
Copy link

@aulemahal aulemahal commented Mar 23, 2020

For people seeking the same problem : I had the same problem and was able to solve it by changing python versions.
It failed when using Python 3.8.2 (from my machine)
It worked with Python 3.8.1 (from an Anaconda environment)

EDIT: I confirm that this was an openssl issue, not a python one.

@jacobtomlinson
Copy link

@jacobtomlinson jacobtomlinson commented Mar 23, 2020

Downgrading openssl to 1.1.1d should also resolve this.

@xavery
Copy link

@xavery xavery commented Apr 1, 2020

Things seem to be back to normal with 1.1.1f.

@ap-Codkelden
Copy link

@ap-Codkelden ap-Codkelden commented Apr 2, 2020

In addition to @xavery , I confirm that upgrade to 1.1.1f resolve this problem.

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
6 participants
You can’t perform that action at this time.