nurdtechie98 / drive-cli

A command line interface for accessing google drive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OverflowError: string longer than 2147483647 bytes

DmitriyG228 opened this issue · comments

Hi, though I see this issue has been fixed, I still experience it. It happens while doing drive add_remote I would appreciate an advice.

File "/home/dima/drive-cli/drive_cli/actions.py", line 178, in create_remote utils.push_content(child_cwd, child_id) File "/home/dima/drive-cli/drive_cli/utils.py", line 492, in push_content upload_file(item, item_path, fid) File "/home/dima/drive-cli/drive_cli/utils.py", line 375, in upload_file fields='id').execute() File "/home/dima/anaconda3/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/home/dima/anaconda3/lib/python3.7/site-packages/googleapiclient/http.py", line 846, in execute method=str(self.method), body=self.body, headers=self.headers) File "/home/dima/anaconda3/lib/python3.7/site-packages/googleapiclient/http.py", line 164, in _retry_request resp, content = http.request(uri, method, *args, **kwargs) File "/home/dima/anaconda3/lib/python3.7/site-packages/oauth2client/transport.py", line 175, in new_request redirections, connection_type) File "/home/dima/anaconda3/lib/python3.7/site-packages/oauth2client/transport.py", line 282, in request connection_type=connection_type) File "/home/dima/anaconda3/lib/python3.7/site-packages/httplib2/__init__.py", line 1926, in request cachekey, File "/home/dima/anaconda3/lib/python3.7/site-packages/httplib2/__init__.py", line 1595, in _request conn, request_uri, method, body, headers File "/home/dima/anaconda3/lib/python3.7/site-packages/httplib2/__init__.py", line 1502, in _conn_request conn.request(method, request_uri, body, headers) File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1244, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1290, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1239, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1065, in _send_output self.send(chunk) File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 987, in send self.sock.sendall(data) File "/home/dima/anaconda3/lib/python3.7/ssl.py", line 1034, in sendall v = self.send(byte_view[count:]) File "/home/dima/anaconda3/lib/python3.7/ssl.py", line 1003, in send return self._sslobj.write(data) OverflowError: string longer than 2147483647 bytes

Hey @DmitriyG228 !
How did you solve it?

Hey @DmitriyG228 !
How did you solve it?

Hi, cabhijith, gave up quickly solving it.

Oh cool @DmitriyG228!
For anyone in the future, the way I used it by splliting my txt files to approx. 1.2 GBs and pushing them individually. Did it using linux's split function.