Skip to content

Exception: OverflowError: string longer than 2147483647 bytes #646

Closed
@Flow86

Description

@Flow86

Hi,

i tried to import a large repository (export from a different gitlab instance) which is 2,8GB in size (large LFS objects in there)

importing fails:

    i_gl.projects.import_project( open( export_file, 'rb' ), e_project.name, namespace = e_project.namespace[ 'full_path' ], overwrite = True )
  File "/usr/local/lib/python2.7/dist-packages/gitlab/v4/objects.py", line 3698, in import_project
    files=files, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gitlab/__init__.py", line 600, in http_post
    post_data=post_data, files=files, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gitlab/__init__.py", line 481, in http_request
    result = self.session.send(prepped, timeout=timeout, **settings)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 595, in urlopen
    chunked=chunked)
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 363, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python2.7/httplib.py", line 1039, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1073, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1035, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 879, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 855, in send
    self.sock.sendall(data)
  File "/usr/lib/python2.7/ssl.py", line 701, in sendall
    v = self.send(data[count:])
  File "/usr/lib/python2.7/ssl.py", line 667, in send
    v = self._sslobj.write(data)
OverflowError: string longer than 2147483647 bytes

any idea how to solve that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions