Beim verwenden von Pydrive (https://github.com/googledrive/PyDrive) taucht sporadisch folgender Fehler auf mit dem ich nichts anzufangen weiß. Ich nehme an, dass er bedeutet, dass der Server und der Client sich nicht auf eine SSL Version einigen können. Allerdings verstehe ich dann nicht warum der Fehler nicht immer auftritt. Zudem habe ich den Fehler erst seit kurzem zum ersten Mal gesehen, dafür tritt er jetzt häufig auf. Es wäre super, wenn ihr mir erklären könnt wieso der Fehler auftritt oder wie man ihn vermeidet.
Code: Alles auswählen
fileobjects = self.drive.ListFile({'q': "'root' in parents and title='%s'" % (path) }).GetList()
File "build/bdist.linux-x86_64/egg/pydrive/apiattr.py", line 154, in GetList
for x in self:
File "build/bdist.linux-x86_64/egg/pydrive/apiattr.py", line 138, in next
result = self._GetList()
File "build/bdist.linux-x86_64/egg/pydrive/auth.py", line 54, in _decorated
return decoratee(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/pydrive/files.py", line 56, in _GetList
self.metadata = self.auth.service.files().list(**dict(self)).execute()
File "build/bdist.linux-x86_64/egg/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "build/bdist.linux-x86_64/egg/apiclient/http.py", line 716, in execute
body=self.body, headers=self.headers)
File "build/bdist.linux-x86_64/egg/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "build/bdist.linux-x86_64/egg/oauth2client/client.py", line 490, in new_request
redirections, connection_type)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1592, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1334, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1290, in _conn_request
response = conn.getresponse()
File "/usr/lib/python2.7/httplib.py", line 1073, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 415, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib/python2.7/socket.py", line 476, in readline
data = self._sock.recv(self._rbufsize)
File "/usr/lib/python2.7/ssl.py", line 709, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 603, in read
v = self._sslobj.read(len or 1024)
SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1750)