Skip to content

int() argument must be a string, a bytes-like object or a real number, not 'NoneType' while accessing pagination related attributes #1686

Description

@VenkatsQuest

Description of the problem, including code/CLI snippet

Accessing current_page , per_page , total , total_pages attributes , throwing the following error.
int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

  gl = gitlab.Gitlab('https://gitlab.com/', private_token=developer_access_token,
                       pagination="keyset", order_by="id",
                       per_page=100)
    iterator_projects = gl.projects.list(as_list=False, owned=True)

Expected Behavior

It should return the number of pages expected

Actual Behavior

throwing exceptions.

Specifications

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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