Skip to content

"OverflowError: string longer than 2147483647 bytes" when upload file > 2GB to generic package #2002

Open
@thcao-ampere

Description

@thcao-ampere

Description of the problem, including code/CLI snippet

I used project.generic_packages.upload api and got this issue when upload file > 2GB

project = gl.projects.get(1, lazy=True)
package = project.generic_packages.upload(
    package_name="hello-world",
    package_version="v1.0.0",
    file_name="hello.tar.gz",
    path="/path/to/local/hello.tar.gz"
)

Expected Behavior

Actual Behavior

Specifications

  • python-gitlab version: 2.10.1
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): gitlab.com

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