youtube-upload icon indicating copy to clipboard operation
youtube-upload copied to clipboard

SSL: CERTIFICATE_VERIFY_FAILED

Open mfraser opened this issue 5 years ago • 3 comments

When I tried to upload a video to YouTube today, it fails with "SSL: CERTIFICATE_VERIFY_FAILED" having worked previously.

Traceback (most recent call last): File "/usr/local/bin/youtube-upload", line 181, in sys.exit(lib.catch_exceptions(EXIT_CODES, main, sys.argv[1:])) File "/usr/local/lib/python2.7/dist-packages/youtube_upload/lib.py", line 37, in catch_exceptions fun(*args, **kwargs) File "/usr/local/bin/youtube-upload", line 178, in main run_main(parser, options, args) File "/usr/local/bin/youtube-upload", line 133, in run_main get_code_callback=get_code_callback) File "/usr/local/lib/python2.7/dist-packages/youtube_upload/auth/init.py", line 39, in get_resource credentials = _get_credentials(flow, storage, get_code_callback) File "/usr/local/lib/python2.7/dist-packages/youtube_upload/auth/init.py", line 32, in _get_credentials return _get_credentials_interactively(flow, storage, get_code_callback) File "/usr/local/lib/python2.7/dist-packages/youtube_upload/auth/init.py", line 21, in _get_credentials_interactively credential = flow.step2_exchange(code, http=None) File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1975, in step2_exchange headers=headers) File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1608, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1350, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1272, in _conn_request conn.connect() File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1059, in connect raise SSLHandshakeError(e) httplib2.SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)

mfraser avatar Jun 26 '19 08:06 mfraser

@mfraser Is this still happening?

kootsoop avatar May 06 '20 15:05 kootsoop

I see this immediately after entering the auth code.

KenSharp avatar Jun 17 '20 17:06 KenSharp

Okay, I reinstalled youtube-upload which pulled in a load of new packages, and this now works. My guess is that the old packages simply don't work anymore and you need to update/upgrade/reinstall to get things working again.

KenSharp avatar Jun 17 '20 17:06 KenSharp