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

OverflowError: string longer than 2147483647 bytes #96

Open
DmitriyG228 opened this issue Apr 30, 2020 · 3 comments
Open

OverflowError: string longer than 2147483647 bytes #96

DmitriyG228 opened this issue Apr 30, 2020 · 3 comments

Comments

@DmitriyG228
Copy link

DmitriyG228 commented Apr 30, 2020

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

@cabhijith
Copy link

Hey @DmitriyG228 !
How did you solve it?

@DmitriyG228
Copy link
Author

Hey @DmitriyG228 !
How did you solve it?

Hi, cabhijith, gave up quickly solving it.

@cabhijith
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants