Skip to content

unexpected keyword argument 'paging_workaround'  #1397

Closed
@AnkeshThakur

Description

@AnkeshThakur

I was trying to use this library and while trying to get it work I find that this paging_workaround is wrong key here. Is it known issue?

The cause of it wrong param being passed to Jira._get_paged().

Stacktrace:

  File "/workspace/dora/jira_project.py", line 49, in <module>
    p = jp.get_project()
        ^^^^^^^^^^^^^^^^
  File "/workspace/dora/jira_project.py", line 24, in get_project
    projects = self.jira.get_all_projects(included_archived=True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/atlassian/jira.py", line 2416, in get_all_projects
    return self.projects(included_archived, expand)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/atlassian/jira.py", line 2434, in projects
    self._get_paged(
TypeError: Jira._get_paged() got an unexpected keyword argument 'paging_workaround' 

Fix is very simple - just remove paging_workaround in this call

self._get_paged(
                     self.resource_url("project/search"),
                     params,
                     paging_workaround=True,
                 )

Associated PR: https://github.com/atlassian-api/atlassian-python-api/pull/1344/files#diff-160cdaa88ad7a2a6a2d2abd51b32052252fe4ec234c82030006888b10aca1bb0R2367

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