Skip to content

Additional arguments are passed on to the API #987

Closed
@mitar

Description

@mitar

Description of the problem, including code/CLI snippet

I want to control the logic for retrying, so I use:

project.files.raw(file_path='README.md', ref='master', max_retries=10, retry_transient_errors=True)

Expected Behavior

The request is made to gitlab.com which looks like:

/api/v4/projects/123/repository/files/README%2Emd/raw?ref=master

And if request fails, it is retried.

Actual Behavior

But the actual request is:

/api/v4/projects/123/repository/files/README%2Emd/raw?ref=master&max_retries=10&retry_transient_errors=True

Specifications

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions