iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
570 stars 70 forks source link

ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) #280

Closed pdisk closed 9 months ago

pdisk commented 1 year ago

Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/root/unlimited/main.py", line 65, in upload_file file.Upload() File "/usr/local/lib/python3.10/dist-packages/pydrive2/files.py", line 516, in Upload self._FilesInsert(param=param) File "/usr/local/lib/python3.10/dist-packages/pydrive2/auth.py", line 84, in _decorated return decoratee(self, *args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/pydrive2/files.py", line 682, in _FilesInsert self.auth.service.files() File "/usr/local/lib/python3.10/dist-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/googleapiclient/http.py", line 902, in execute _, body = self.next_chunk(http=http, num_retries=num_retries) File "/usr/local/lib/python3.10/dist-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/googleapiclient/http.py", line 1084, in next_chunk resp, content = http.request( File "/usr/local/lib/python3.10/dist-packages/oauth2client/transport.py", line 173, in new_request resp, content = request(orig_request_method, uri, method, body, File "/usr/local/lib/python3.10/dist-packages/oauth2client/transport.py", line 280, in request return http_callable(uri, method=method, body=body, headers=headers, File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1725, in request (response, content) = self._request( File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1364, in _conn_request conn.request(method, request_uri, body, headers) File "/usr/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1076, in _send_output self.send(chunk) File "/usr/lib/python3.10/http/client.py", line 998, in send self.sock.sendall(data) File "/usr/lib/python3.10/ssl.py", line 1237, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.10/ssl.py", line 1206, in send return self._sslobj.write(data) ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396)

I'm getting this error while uploading file